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] Still request gallery access permission after granted #861

Open
hieunguyen2211 opened this issue Oct 11, 2023 · 0 comments
Open

Comments

@hieunguyen2211
Copy link

Bug Report

Problem

What is expected to happen?

After granted gallery access permission, when trying to access gallery again, there is no popup to ask users to allow gallery access permission.

What does actually happen?

After granted gallery access permission, when trying to access gallery again, there is a popup to ask users to allow gallery access permission

Information

As I checked at CameraLauncher.java#L244, READ_EXTERNAL_STORAGE is added into a list of permissions, which will be verified later. However, in plugin.xml#L58, there is no READ_EXTERNAL_STORAGE here.

I try to add READ_EXTERNAL_STORAGE to my project by:
<uses-permission android:maxSdkVersion="32" android:name="android.permission.READ_EXTERNAL_STORAGE" />
And the problem is gone.

Environment, Platform, Device

Android 11, 12 with targetSDK 33

Version information

cordova 12, cordova-plugin-camera 7.0.0

@hieunguyen2211 hieunguyen2211 changed the title [Android] Still request gallery access permission after accepting [Android] Still request gallery access permission after granted Oct 11, 2023
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

No branches or pull requests

1 participant