Is there any way to know user successfully shared the app in IONIC2?

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?

1 Like

what is console.log(msg) showing?

@FnnHuman

It’s showing Ok as response Even if I press back button.

it’s printing Ok…

and there’s no body?

@FnnHuman

It’s not getting any other properties it’s only showing Ok as output when I console.log…

at this point i have no clue how to change this behaviour, maybe try stackoverflow

Thanks…I will try there also.I already tried couldn’t find anything related to it.I will see if I can find something.