Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SocialShare.shareSms crashes on iOS #145

Open
mihail-varbanov opened this issue Nov 10, 2023 · 0 comments
Open

[BUG] SocialShare.shareSms crashes on iOS #145

mihail-varbanov opened this issue Nov 10, 2023 · 0 comments

Comments

@mihail-varbanov
Copy link

mihail-varbanov commented Nov 10, 2023

Invoke on iOS platform:
SocialShare.shareSms('Rev Spring 2024 Ready-to-Wear\n', url: 'https://www.vogue.com/fashion-shows/spring-2024-ready-to-wear/rev/slideshow/collection')

Result: app crashes producing the following log:
-[NSNull length]: unrecognized selector sent to instance 0x1f809d3e0

Reason:
The passed arguments:

args = {
  "message": "Rev Spring 2024 Ready-to-Wear\n",
  "urlLink": "https://www.vogue.com/fashion-shows/spring-2024-ready-to-wear/rev/slideshow/collection",
  "trailingText": null
}

come to iOS native side as:

call.arguments = @{
  @"message" : @"Rev Spring 2024 Ready-to-Wear\n",
  @"urlLink": @"https://www.vogue.com/fashion-shows/spring-2024-ready-to-wear/rev/slideshow/collection",
  @"trailingText": [NSNull null]
}

but the following line does not acknowledge the possible [NSNull null] value:
NSString *trailingText = call.arguments[@"trailingText"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant