Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback always return error = true even sms sent #73

Open
teddyhendryanto-azurei opened this issue Sep 26, 2019 · 3 comments
Open

Callback always return error = true even sms sent #73

teddyhendryanto-azurei opened this issue Sep 26, 2019 · 3 comments

Comments

@teddyhendryanto-azurei
Copy link

teddyhendryanto-azurei commented Sep 26, 2019

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

@tkporter
Copy link
Owner

tkporter commented Oct 2, 2019

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

@lasharela
Copy link

I have opposite:
#71

@UraanAmritansh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants