react-native-sms
react-native-sms copied to clipboard
Callback always return error = true even sms sent
Hi @tkporter
Thank you for your awesome package. I'm able to integrate your package to my RN-app. But I'm facing an issue while checking the callback function, it always return error = false. I use same code as your example:
SendSMS.send({
body: 'The default body of the SMS!',
recipients: ['6285921010XXX'],
successTypes: ['sent', 'queued'],
allowAndroidSendWithoutReadPermission: true
}, (completed, cancelled, error) => {
console.log('SMS Callback: \ncompleted: ' + completed + '\ncancelled: ' + cancelled + '\nerror: ' + error);
});
But I always got this:
How to fix this? Need your advice. Thanks before.
Version: react-native; 0.57.7 react-native-sms: 1.9.0
Interesting, have you tried with a different phone/android version? Sometimes there’s some weird behavior with different ones phones. It could also be a bug when allowAndroidSendWithoutReadPermission
is true
I have opposite: https://github.com/tkporter/react-native-sms/issues/71
I am also facing the same issue only in IOS , in android it's working fine