SocialSharing-PhoneGap-Plugin: On Android some external urls in file array don't work from Firebase Storage Image url, on IOS it does.
I’ve found a special case where a certain type of url doesn’t work with android (all sharing platforms) but works on ios all sharing platforms Twitter, Facebook, Email, SMS, Slack it’s perfect, thanks for awesomeness ! 👍
It’s a url from firebase, it works great with iOS plugin but not with Android
Do you think you can have a lot, it’s blocking my google store submission for now.
Appstore is about to accept my submission in few hours.
console.log(this.imageSaved)
var options = {
message: 'My Last Mooz !!!!', // not supported on some apps (Facebook, Instagram)
subject: 'Here we go !', // fi. for email
files: [this.imageSaved], // an array of filenames either locally or remotely
chooserTitle: 'Pick an app' // Android only, you can override the default share sheet title
}
var onSuccess = (result) => {
console.log("Sharing succeeded with message: " + result);
}
var onError = (msg) => {
console.log("Sharing failed with message: " + msg);
}
SocialSharing.shareWithOptions(options)
.then((result) => onSuccess)
.catch(() => onError);
}
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 23
Ok the only way i found to send a firebase image was converting it to a base64 string. This conversion it’s easy to do, there are many examples out there.
Only that way worked. but only through shareWithOptions() method. I wanted to share only through Facebook pages app -> shareVia(‘com.facebook.pages.app’… but even that did not work.
jayzus…
I’ll dig that in the next few weeks I’m sure there’s a workaround. But professional project is not giving me time to investigate…