ShekarMudaliyar / social_share

Flutter package to share images/videos/text on social media
https://pub.dev/packages/social_share
MIT License
101 stars 166 forks source link

SocialShare.shareSms does not work on iOS #146

Open mihail-varbanov opened 8 months ago

mihail-varbanov commented 8 months ago

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', trailingText: '')

Result: Nothing happens

Reason: The following line uses wrong SMS URL format that is not supported in iOS: NSString *urlSchemeSms = [NSString stringWithFormat:@"sms:?&body=%@",msg];

This should be without the question mark: NSString *urlSchemeSms = [NSString stringWithFormat:@"sms:&body=%@",msg];

Also, urlLink parameter is not acknowledged anywhere.

dhikshithrm commented 6 months ago

for now, i found a work around by interpolating the URL into the SMS, and it's working, iMessage will handle the URL parsing for thumbnails