-
Notifications
You must be signed in to change notification settings - Fork 597
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
Deprecated WRITE_EXTERNAL_STORAGE permission required for Camera #1701
Comments
This issue needs more information before it can be addressed. Please see the Contributing Guide for how to create a Sample App. Thanks! |
I have added a code reproduction and also raised PR #1702. |
This issue has been labeled as |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out. |
Bug Report
Plugin(s)
Capacitor Version
Platform(s)
Current Behavior
The
camera
plugin requires theWRITE_EXTERNAL_STORAGE
permission for all Android SDK versions below 33.However, the
WRITE_EXTERNAL_STORAGE
permission has no effect in Android SDK versions above 29: https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGEHaving permissions required in the manifest that are not necessary can lead to an app being rejected from Google Play.
If I implement the maximum SDK version for the permission into the AndroidManifest.xml as follows:
Then the following error message shows up when trying to use the Permission with alias
CameraPlugin.PHOTOS
in theCamera
plugin:Expected Behavior
The plugin should only require the following permissions in AndroidManifest.xml:
Code Reproduction
https://github.com/RB-Hippo/ionic-capacitor-issue-reproduction/tree/camera-permission-issue
Other Technical Details
Additional Context
The text was updated successfully, but these errors were encountered: