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

In callback function all parameters are false only on Android

Open lasharela opened this issue 6 years ago • 1 comments

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

lasharela avatar Sep 20 '19 21:09 lasharela

Hi,

Did you tried with the android permission READ_SMS and without the option allowAndroidSendWithoutReadPermission ?

UnableHead avatar Mar 26 '20 10:03 UnableHead