diff --git a/plugin.xml b/plugin.xml index 68793be3..bc6e7e7c 100755 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="4.3.3"> SocialSharing diff --git a/src/ios/SocialSharing.m b/src/ios/SocialSharing.m index 86ec118b..fd07f58b 100755 --- a/src/ios/SocialSharing.m +++ b/src/ios/SocialSharing.m @@ -163,7 +163,9 @@ - (void)shareViaInternal:(CDVInvokedUrlCommand*)command // boldly invoke the target app, because the phone will display a nice message asking to configure the app SLComposeViewController *composeViewController = [SLComposeViewController composeViewControllerForServiceType:type]; - [composeViewController setInitialText:message]; + if (message != (id)[NSNull null]) { + [composeViewController setInitialText:message]; + } for (NSString* filename in filenames) { UIImage* image = [self getImage:filename];