flutter-permission-handler
flutter-permission-handler copied to clipboard
iOS 14 limited access to gallery - unable to ask for more photos
🐛 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
Any updates on this?
Facing same issue here.
We need this feature as well.
iOS should call presentLimitedLibraryPicker
.
https://developer.apple.com/documentation/photokit/phphotolibrary/3616113-presentlimitedlibrarypicker
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()
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?
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.
Any updates on this?
Any updates on this?
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