briankabiro / react-native-get-sms-android

React Native module to get messages on an Android device
MIT License
137 stars 68 forks source link

Permission denied com.android.providers.telephony.SmsProvider #17

Closed UnnikrishnanBhargavakurup closed 6 years ago

UnnikrishnanBhargavakurup commented 6 years ago

I'm getting the following error:

Permission denied com.android.providers.telephony.SmsProvider

Please see the attached screenshot.

screen shot 2018-10-08 at 6 19 08 pm
gitsuraj commented 6 years ago

I am getting same error as well

davidstoneham commented 6 years ago

This error means the app has not been given access to read the messages of the device. You can manually give it permission via the settings > apps > permissions on your device or use a plugin to request permission from the user. You'll also need to make sure you have the correct imports in your manifest file too (these are outlined in the readme)

gitsuraj commented 6 years ago

Thanks @davidstoneham, I thought only adding permission in manifest file was sufficient. Used separately asked permission beforehand and it works as expected.