EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 907 forks source link

Image not getting passed in shareViaSMS in Android #686

Open saurabhudaniya200 opened 7 years ago

saurabhudaniya200 commented 7 years ago

I have the code below for sharing via SMS(works fine on IOS) but on Android, the image is not getting shared.

var options = {message: 'Hey', subject: 'This is it', message: 'This is the complete body', image: 'BASE64STRING'}
window.plugins.socialsharing.shareViaSMS(options, function(success) {}, function(error) {});

cordova and plugin version below

cordova 6.3.1 cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"

michaelpeterlee commented 7 years ago

I get error Android toast error message 'content cannot be added to message', works fine for email and other destinations.

window.plugins.socialsharing.share(myText, '', localPathToFile, '');

Android 5.1.1. Cordova 6.5.0 cordova-plugin-x-socialsharing 5.1.6 "SocialSharing"

muhsin-k commented 6 years ago

@michaelpeterlee @saurabhudaniya200 Did you get the solution?

michaelpeterlee commented 6 years ago

I have no solution yet sorry.