react-native-get-sms-android
react-native-get-sms-android copied to clipboard
about `WRITE_SMS`
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
i am facing same issue, any solution?