[imagepicker]: iOS14.0+ photoLibrary shows all photos even if user choose the selected photos permission
See original GitHub issue🐛 Bug Report
I am using the expo-image-picker in my project. When I use the photo from the photo library, app shows the all photos even if I choose the “selected photos” permission. This is happening on the iOS 14.0+ only.
Environment - output of expo diagnostics & the platform(s) you’re targeting
expo-image-picker: 0.8.0
Steps to Reproduce
- Choose the “selected photos” permission in the photolibrary permission popup.
- Open photoLibrary
- It shows all photos
Expected Behavior vs Actual Behavior
This should display the selected photos only since I chose the “selected photos” permission.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
UIImagePickerController shows all … | Apple Developer Forums
The picker will still show the entire Photos Library and all photos and videos can be selected by the user. No matter what...
Read more >expo-image-picker: app shows all photos even if I choose the ...
I am using the expo-image-picker for photo management. When I choose the "selected photos" permission and open the photo library, photo ...
Read more >How to use the limited photos picker in iOS 14 for added privacy
This dialog lets you choose a limited subset of your library for the app to pick from (the Select Photos option), or use...
Read more >Photo library changes in iOS 14 - MacKuba
The picker runs in a separate process, it handles the selection for you and sends you back only what the user selected, so...
Read more >How to Manage Photo Library Permission in iOS - Swift Senpai
Whereas, when tapping on the “Manage” button, the user can either select more photos or grant full photo library access to the app....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @thisisgit, this feature was added to
expo-media-libraryin the SDK 40. See https://docs.expo.io/versions/latest/sdk/media-library/#medialibrarypresentpermissionspickerasync 😉I had the same concern but after looking into a number of post, I have a feeling that it’s an intended behavior. (FYI, I’m new to mobile dev)
As I tested few apps like Instagram, Facebook, Pinterest, and etc., they all have their own custom camera roll and that’s the place where the app is showing all accessible photos. The image picker itself always shows all the photos and is only used to add selected photos to the camera roll.
Based on this thread, another thread, and this answer, I assume it is currently impossible to limit restricted photos in the image picker and to show only selected photos, creating custom camera roll is necessary.
So the UX goes like this:
And to achieve above flow, we are missing following features:
Anyone please correct me if I’m wrong. cc @byCedric