SocialSharing-PhoneGap-Plugin: Failed to find configured root that contains
I am getting the following error when trying to share a file from a remote URL.

Here is my code.
var options = {
message: 'share this', // not supported on some apps (Facebook, Instagram)
subject: 'the subject', // fi. for email
files: ["http://ngcordova.com/img/ngcordova-logo.png"], // an array of filenames either locally or remotely
url: 'http://ngcordova.com/',
chooserTitle: 'Pick an app' // Android only, you can override the default share sheet title
}
var onSuccess = function (result) {
alert("Share completed? " + result.completed); // On Android apps mostly return false even while it's true
alert("Shared to app: " + result.app); // On Android result.app is currently empty. On iOS it's empty when sharing is cancelled (result.completed=false)
}
var onError = function (msg) {
alert("Sharing failed with message: " + msg);
}
window.plugins.socialsharing.shareWithOptions(options, onSuccess, onError);
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 24 (10 by maintainers)
What does Google tell us about this error?
Released with 5.1.6.
Although I can think of more fun things, I will be solving this this weekend.