Callback is not being executed after sending the sms successfully
It seems like there is no way to know when the sms is successfully sent, the callback is not being called after sending the SMS on android. but, if I do cancel the sms taping back, it gets into the callback. otherwise it does not know it. is there any delay or something when the sms has been sent?
SendSMS.send({
body: 'The default body of the SMS!',
recipients: ['0123456789', '9876543210'],
successTypes: ['sent', 'queued'],
allowAndroidSendWithoutReadPermission: true
}, (completed, cancelled, error) => {
console.log('SMS Callback: completed: ' + completed + ' cancelled: ' + cancelled + 'error: ' + error);
});
Hi,
Did you tried with the android permission READ_SMS and without the option allowAndroidSendWithoutReadPermission ?
I did try with READ_SMS and without allowAndroidSendWithoutReadPermission but it does not respond to the callback. Works well on iOS only. Also, if I come back from SMS screen, the callback says sending cancelled
Same here. Did you find any solution for this?