-
Notifications
You must be signed in to change notification settings - Fork 70
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
Remove uses-permission
from AndroidManifest.xml
#34
Comments
Also change the README accordingly. As it guides to add permissions manually to AndroidManifest.xml, which is not actually required. It should be changed to add the specific permission that a specific function requires. |
Seems like a reasonable idea. Why not propose a PR to match? |
Sure thing. I am new to react-native, so was just going through on some blog posts on how to develop plugins for react-native so that I don't accidentally break any other things. I will create a PR as soon as I am ready with the change. Maybe within 24 hours. |
Thanks @sulaysumaria. We'd both be happy to offer advice on this. |
- remove the user permissions for the app from the manifest - update the README with the new changes [Finishes #34]
- remove the user permissions for the app from the manifest - update the README with the new changes [Finishes #34]
- remove the user permissions for the app from the manifest - update the README with the new changes [Finishes #34]
Problem Statement:
I am using
react-native-get-sms-android
for reading sms only. Still my app asks permission forWRITE_SMS
andSEND_SMS
, even though I have not asked for that permission.Cause:
The permission specified in the
AndroidManifest.xml
of this plugin.Solution:
Remove the permissions from this plugin's
AndroidManifest.xml
and let developers add it to their app's Manifest so that there are no permissions required that the developer is not aware of.Workaround:
Add this to your app's
android/app/src/main/AndroidManifest.xml
and it will remove unnecessary permission.Also add
xmlns:tools
to yourmanifest
tag to work:The text was updated successfully, but these errors were encountered: