-
Notifications
You must be signed in to change notification settings - Fork 178
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
[feature-request] Add <uses-permission> to manifest for each requested permission #84
Comments
Thanks you made my day! |
If someone has problems with
|
I agree that the plugin only asks for permissions declared with I'm not an Android expert, but isn't the whole point to avoid After all, also the Android guide describes Also, when publishing an app via the Play Console such permissions are listed as "required": ...however I need these sensitive permissions only in certain rare situations and the user should not need to grant these permissions on install. Edit: Google Play Console also won't publish the app to devices that do not support permissions listed in Am I missing something? |
All runtime permissions must be declared in the manifest to be able to ask for them to be granted at runtime. |
When trying to request some permission, if it is not declared on AndroidManifest.xml, Android will not even try to request it and directly return false when checking. I solved this temporally by adding this code on config.xml, maybe it can be added automatically.
<config-file parent="/manifest" target="AndroidManifest.xml"> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-feature android:name="android.hardware.microphone" /> </config-file>
The text was updated successfully, but these errors were encountered: