0
I’m developing an app that shares an image from inside it to the Instagram
, is in Ionic 3
. In the plugin documentation Instagram
for Ionic
says that the function returns whether or not the image was shared, but in practice only get back the message "Share cancelled"
, even though the image is actually shared.
How do I get the return I desire?
Follows an excerpt from the function:
file.readAsDataURL(url, this.imgname).then(res => {
this.insta.share(res, this.texto).then((data) => {
alert("Data insta share>: " + JSON.stringify(data));
}).catch( error => {
alert("error : " + JSON.stringify(error));
})
}).catch(err => {})
The message : "Share cancelled" is displayed inside then or catch?
– edson alves
is displayed inside the catch
– Hugo Paulista
If you entered the catch is because it was not shared, whatever the reason was. You will only enter the then when it was successful
– edson alves
exact, but enters the catch even if the image is shared
– Hugo Paulista
Strange, I will try to play. Put the plugin link in the question, please.
– edson alves
ready, put on
– Hugo Paulista