I can send emails but the promise’s success and error callbacks are not being called.
My code:
indiquePorEmail(email:string) {
SocialSharing.canShareViaEmail().then(
result => {
console.log('Can send email:', JSON.stringify(result,null,4));
var message = this.getMensage();
SocialSharing.shareViaEmail(message.content, message.subject, [email]).then(
result => {
console.log('The email was sent.', JSON.stringify(result,null,4));
},
error => {
console.log('Error sending email email', JSON.stringify(error,null,4));
}
);
},
error => {
console.error(Cannot send email:', JSON.stringify(error,null,4));
}
)
}