Skip to content

[Android 14] - Limited permissions for gallery not working on Android 14+Β #2058

@Mathitarazonad

Description

@Mathitarazonad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions