Baseflow / Baseflow/flutter-permission-handler

Allow requesting "photosAddOnly" permission and "photos" independently

Open
#782 1 comment 2 reactions 0 assignees View on GitHub
P2 platform: ios refactor type: enhancement
Dominant language
Dart
Stars
2.2k
Forks
970
Avg merge
14h 22m
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.