flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

iOS 14 limited access to gallery - unable to ask for more photos

Open yanivshaked opened this issue 3 years ago • 9 comments

🐛 Bug Report

The permission status reported for both Permission.photos and Permission.photosAddOnly is the same, and asking for Permission.photosAddOnly doesn't bring up the native popup to add more photos for application access.

Expected behavior

Requesting for Permission.photosAddOnly should bring up the native popup allowing more photos.

Reproduction steps

Run the example Ask for Permission.photos - when native popup is displayed, use Select Photos... Select a few images and click done Ask for Permission.photosAddOnly - nothing happens. How would I bring the add photos native popup up again?

Configuration

iOS 14.4.2

yanivshaked avatar May 09 '21 08:05 yanivshaked

Any updates on this?

gildaswise avatar Jun 17 '21 17:06 gildaswise

Facing same issue here.

nayirong avatar Jun 21 '21 08:06 nayirong

We need this feature as well.

iOS should call presentLimitedLibraryPicker. https://developer.apple.com/documentation/photokit/phphotolibrary/3616113-presentlimitedlibrarypicker

JulianBissekkou avatar Jul 08 '21 05:07 JulianBissekkou

I don't think it's the permission handler's responsibility to call presentLimitedLibraryPicker. It should be done by your image picker. If you are building your own you can use the library photo_manager and call PhotoManager.presentLimited()

Kal-Elx avatar Oct 13 '21 08:10 Kal-Elx

It's definitely the responsibility of a permission handler lib to ask for this iOS Permission. Why should I use another lib for asking for this one specific permission?

JulianBissekkou avatar Oct 14 '21 05:10 JulianBissekkou

My view is that this is something you do after you have been granted limited permission to the photo library.

From the docs: If the user enabled limited library access using requestAuthorization(for:handler:), use this method to present the limited library picker so they can update their selection.

That's why I think this functionality is better suited in an image picker library like photo_manager but I might be wrong, I'm not a maintainer of this library.

Just to be clear, I'm not advocating for not adding presentLimitedLibraryPicker to this library, it would be great if there was a way to call it. I just wanted to make everyone aware that there are alternatives.

Kal-Elx avatar Oct 14 '21 10:10 Kal-Elx

Any updates on this?

amir067 avatar May 30 '23 13:05 amir067

Any updates on this?

Vedsaga avatar Dec 04 '23 07:12 Vedsaga

I need to know if permission is allowed to Photo Library in my project or not. and for that I use Permission.photos.status. But it is returning me PermissionStatus.permanentlyDenied every time. Even if I go to settings and allow photos, I get the same result

Muhammarizo avatar Mar 28 '24 09:03 Muhammarizo