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 14] - Limited permissions for gallery not working on Android 14+ #2058

Open
Mathitarazonad opened this issue May 21, 2024 · 3 comments

Comments

@Mathitarazonad
Copy link

Version

  • react-native-image-crop-picker v0.41.1
  • react-native v0.72.13

Platform

  • Android 14

Expected behaviour

When user grants limited permissions to the gallery, when it only gives access to some photos, when the image picker opens just need to show images that it granted permissions before.

Actual behaviour

What actually happens is that users provides access to specifics images or videos but when the gallery opens it just shows all images of the device, and not just the specified images that user granted permissions. Also this feature works as expected in iOS but on android it seems to be missing.

Steps to reproduce

  1. In Android 14, request the required permissions to access user media.
    image

  2. User selects the option to select which images are allowed for the app to use.
    image

  3. It shows a gallery to allow the user to pick up which images are allowed for the app to use.
    image

  4. The gallery opens and shows all images not taking into account what user selected previously.
    image
    image

Attachments

I only can try it with emulators because I don't have physical Android with 14 Api available right now. As I mentioned before, it works well on IOS devices but not on Android 14, also It happens with react-native-image-picker library. Not know exactly what could be missing with Android but I found this documentation in Android developers official page. https://developer.android.com/about/versions/14/changes/partial-photo-video-access?hl=en-419
image

Love react-native-image-crop-picker? Please consider supporting our collective:
👉 https://opencollective.com/react-native-image-crop-picker/donate

@Mathitarazonad Mathitarazonad changed the title [Android 14] - Limited permissions to gallery not working on Android 14+ [Android 14] - Limited permissions for gallery not working on Android 14+ May 21, 2024
@deepa98singh
Copy link

Same issue.

Additional behaviour observed,
Scenario - if a video is recorded from the application, and the limited access is not given to the video .
Behaviour - The video can be seen playing in the app, ideal to the limited access permission behaviour, this video must not be accessible.

Request Google to look into it.

@avinash-nimblechapps
Copy link

+1

1 similar comment
@fukemy
Copy link

fukemy commented Jun 24, 2024

+1

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

4 participants