react-native-sms
react-native-sms copied to clipboard
In callback function all parameters are false only on Android
Here is a piece of code:
SendSMS.send(
{
body: message,
recipients: [phoneNumber],
successTypes: ['all'],
allowAndroidSendWithoutReadPermission: true,
},
(completed, cancelled, error) => {
// If Message was sent successfully we have to disable button and update backend
if (completed) {
updateReminded({
variables: {
inviterAccountId: accountId,
inviteeSeatId: invitedSeatId,
},
});
setIsReminded(true);
}
}
);
For any Android after sms send completed, cancelled and error are false
Hi,
Did you tried with the android permission READ_SMS and without the option allowAndroidSendWithoutReadPermission ?