Open gamesover opened 3 years ago
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.
secret
In manifest, you have to highlight write_sms for sure
manifest
<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.
PermissionsAndroid.requestMultiple
PermissionsAndroid.PERMISSIONS.WRITE_SMS
null
I hope it will help someone else
i am facing same issue, any solution?
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 sureBut in
PermissionsAndroid.requestMultiple
, you cannot requestPermissionsAndroid.PERMISSIONS.WRITE_SMS
, android will throw error withnull
permission.I hope it will help someone else