Skip to content
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

Android 13 permissions fix #236

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AbidR-S2
Copy link

@AbidR-S2 AbidR-S2 commented Jun 7, 2023

Fixed the problem with viewing files on Android 13 devices.
Have tested the fix on Tab Active 3s. One of them on Android 13, the other one on Android 12. Both preview files correctly.
This was tested as a plugin on an ionic capacitor app deployed to Android Studio Flamingo 2022.2.1 Patch 2.

AbidR-S2 added 4 commits June 7, 2023 17:12
Added conditionals to check for which OS is on the device and asks for the correct permissions accordingly
Tested on Tab Active 3 on Android 13
Tested on Tab Active 3 on Android 12
Both working correctly.
If READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are restricted by sdk then other plugins (specifically the @capacitor/camera multiple image gallery picker) it complains that these two legacy permissions are missing on an Android 13 device.
If the restrictions are removed then all the plugins work. It doesn't affect the photo viewer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants