We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am not getting the success callback even I sent the SMS to the selected recipient. Every time I am getting a canceled callback.
Here's my code --
requestSMSPermission = async () => { if (Platform.OS === 'android') { try { const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.READ_SMS, { title: 'Sms Permission', message: 'App needs Sms permission', }, ); return granted === PermissionsAndroid.RESULTS.GRANTED; } catch (err) { console.log(err); return false; } } else return true; }; sendSMS = async (selectedContacts) => { let permission = await this.requestSMSPermission() if (permission) { SendSMS.send( { body: "Hello I am using App", recipients: selectedContacts, successTypes: ['sent', 'queued', 'failed', 'outbox'], }, (completed, cancelled, error) => { if (completed) { console.log('SMS Sent Completed'); } else if (cancelled) { console.log('SMS Sent Cancelled'); } else if (error) { console.log('Some error occured'); } }, ); } }
The text was updated successfully, but these errors were encountered:
What device are you running this on?
Sorry, something went wrong.
I was using Xiaomi A3 android device, Android 10 version.
Hi @tkporter, this issue is resolved?
No branches or pull requests
I am not getting the success callback even I sent the SMS to the selected recipient. Every time I am getting a canceled callback.
Here's my code --
The text was updated successfully, but these errors were encountered: