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

about `WRITE_SMS`

Open gamesover opened this issue 3 years ago • 1 comments

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

gamesover avatar Mar 13 '21 18:03 gamesover

i am facing same issue, any solution?

mdsiyad avatar Jan 28 '24 09:01 mdsiyad