I have written some code to share the app through different apps but the problem is even if I don’t finish the sharing successfully then also .then() method is triggered and getting result Ok as value…
shareThroughFacebook(){
this.socialSharing.shareViaFacebook("sdfsdfsdfdf", null, null).then((msg)=>{
console.log(msg);
}).catch((error)=>{
console.log(error);
});
}
when I call this method even If i did n’t finish sharing successfully I mean if I press back button in facebook then also it’s executing then method.
How can I know that user posted successfully?Is there any way to do it?