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

about WRITE_SMS #83

Open
gamesover opened this issue Mar 13, 2021 · 1 comment
Open

about WRITE_SMS #83

gamesover opened this issue Mar 13, 2021 · 1 comment

Comments

@gamesover
Copy link

I am completely new to android, the permission is so complex to me :(

I follow the official docu, but sometimes, I can call code successfully, but sometimes, I cannot.

Eventually, I found the secret.

In manifest, you have to highlight write_sms for sure

<uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.WRITE_SMS" />
    <uses-permission android:name="android.permission.SEND_SMS" />

But in PermissionsAndroid.requestMultiple, you cannot request PermissionsAndroid.PERMISSIONS.WRITE_SMS, android will throw error with null permission.

I hope it will help someone else

@mdsiyad
Copy link

mdsiyad commented Jan 28, 2024

i am facing same issue, any solution?

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