ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.14k stars 1.56k forks source link

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

Open Mathitarazonad opened 6 months ago

Mathitarazonad commented 6 months ago

Version

Platform

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

deepa98singh commented 5 months ago

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 commented 5 months ago

+1

fukemy commented 5 months ago

+1

jon-dicken commented 4 months ago

+1

Alexzenderus commented 3 months ago

+1

MahendraThotakuraiOS commented 3 months ago

+1

kuldip-simform commented 1 month ago

+1

omaranwaar commented 1 month ago

+1

omaranwaar commented 1 month ago

@Mathitarazonad did you find anything about this issue?

Avinash-Gophygital commented 1 month ago

Does anyone have any solution? for this, I also have this issue on Android 14+.