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

Allow requesting "photosAddOnly" permission and "photos" independently

Open nwparker opened this issue 2 years ago • 1 comments

Allow requesting "photosAddOnly" permission and "photos" independently

Today you cannot setup an app to request for "photosAddOnly" and later in the same session as for "photos" permission. This is due to how strategies are configured: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionManager.m#L114 vs https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionManager.m#L120

Only one setting in allowed to be passed here.

Instead of this permission being set at configuration-time, it should be able to be passed at runtime so that both permissions can be requested independently

Platforms affected (mark all that apply)

  • [x] :iphone: iOS

nwparker avatar Feb 04 '22 18:02 nwparker

This is indeed the case. I've checked it but I'm not sure if we have a solution for it. I'll label this as an enhancement.

Kind regards,

TimHoogstrate avatar Aug 23 '23 13:08 TimHoogstrate