react-native-sms icon indicating copy to clipboard operation
react-native-sms copied to clipboard

Callback always return error = true even sms sent

Open teddyhendryanto-azurei opened this issue 5 years ago • 3 comments

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: image

How to fix this? Need your advice. Thanks before.

Version: react-native; 0.57.7 react-native-sms: 1.9.0

teddyhendryanto-azurei avatar Sep 26 '19 06:09 teddyhendryanto-azurei

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

tkporter avatar Oct 02 '19 16:10 tkporter

I have opposite: https://github.com/tkporter/react-native-sms/issues/71

lasharela avatar Oct 15 '19 15:10 lasharela

I am also facing the same issue only in IOS , in android it's working fine

UraanAmritansh avatar Nov 15 '21 08:11 UraanAmritansh