SocialSharing PLUGIN doesn't work

Hi everybody,

The SocialSharing plugin from ngCordova (http://ngcordova.com/docs/plugins/socialSharing/) doesn’t work in my app.
I put some console log at different points to see what happen and the only thing i see in the inspector is the “CLICK” log when i tap on the button to open the social sharing options. No error or success callback are invoked.

function openShare() {
    $cordovaSocialSharing.share("MESSAGE", "SUBJECT")
    .then(function(result) {
        console.log("SUCCESS");
        console.log(result);
    }, function(err) {
        console.log("ERROR");
        console.log(err);
    });

    console.log("CLICK");
}

Thanks for helping :smile:

NOTE : this code work fine on IOS.

This works on iOS but not in Android? Did you try removing the Android platform and then adding it back? This way the plugin code will be downloaded for Android.

1 Like

It’s working, thanks a lot ! :slight_smile: