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

Support NSPhotoLibraryAddUsageDescription permission

Open idish opened this issue 2 years ago • 1 comments

🚀 Feature Requests

It would be great to have the NSPhotoLibraryAddUsageDescription permission included (i.e permission for saving photos only - available on ios 11+). Currently we can only leverage the NSPhotoLibraryUsageDescription which is applicable for read & write permission, that would be too broad permission for those who like to only save to library.

Contextualize the feature

Describe the feature

Platforms affected (mark all that apply)

  • [V] :iphone: iOS

idish avatar Jan 15 '23 10:01 idish

That permission is already present in the code, it's just not mentioned in the README. Its in permission_handler_platform_interface/lib/src/permissions.dart.

/// Permission for adding photos to the device's photo library (iOS only).
///
/// Photos can only be added. If you want to read them as well, use the
/// [photos] permission instead.
///
/// iOS: Photos (14+ read & write access level)
static const photosAddOnly = Permission._(10);

c15yi avatar Dec 29 '23 15:12 c15yi

The PR is merged. I'll close this issue for now. Feel free to reopen or file a new issue with new information.

Kind regards,

TimHoogstrate avatar Mar 14 '24 08:03 TimHoogstrate