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

In callback function all parameters are false only on Android #71

Open
lasharela opened this issue Sep 20, 2019 · 1 comment
Open

In callback function all parameters are false only on Android #71

lasharela opened this issue Sep 20, 2019 · 1 comment

Comments

@lasharela
Copy link

lasharela commented Sep 20, 2019

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

@UnableHead
Copy link

Hi,

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

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

2 participants