miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.32k stars 653 forks source link

File Picker Ignores iOS Photo Access Limitations #1439

Open lvyandev opened 7 months ago

lvyandev commented 7 months ago

I've encountered an issue with the file_picker package on iOS, where it does not adhere to the photo access limitations set by the user in the iOS 14+ privacy settings.

Environment

Expected Behavior When a user limits the number of photos an app can access (a feature introduced in iOS 14), the file picker should only display and allow selection from those photos.

Actual Behavior Despite the user setting limitations on the number of accessible photos through iOS privacy settings, the file picker displays and allows selection from the entire photo library.

I'm not sure if this behavior is a bug or a misunderstanding on my part of the file_picker capabilities. Any clarification or guidance would be greatly appreciated.

Steps to Reproduce

  1. On an iOS 14+ device, limit the photo access for the app through the privacy settings.
  2. Use the file_picker to try and select a photo.
  3. Observe that the file picker does not respect the set limitations and displays the entire gallery.

Screen Record

https://github.com/miguelpruivo/flutter_file_picker/assets/18045999/4ec52afe-c164-49ce-90b5-93255e468d0d

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 14 days with no activity.

DerJojo11 commented 7 months ago

I have the same problem.

pawelzagaladeviniti commented 7 months ago

Hi, any updates on this issue?

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

yuliiapochynok0 commented 5 months ago

Hi, i have the same problem in the 8.0.0+1 version, is there any updates on it?

anuragvarshney commented 4 months ago

Hi, We are facing the same problem. Any update on this @navaronbracke

navaronbracke commented 4 months ago

I have not yet had time to look into this.

lvyandev commented 4 months ago

I believe this behavior also happens after Android 11 or so? I am not sure.

LueNC commented 1 month ago

I am not sure that this is incorrect. It appears that the window that is open is the native photo selector, where you select which images you want to give the app access to (i.e basically re-doing what you did in the first window). These images are later then sent to the app, so that it only can ever read the images you are allowing it to read.