nativescript-community / perms

An unified permissions API for NativeScript on iOS and Android.
https://nativescript-community.github.io/perms/
Apache License 2.0
12 stars 9 forks source link

feat(ios): add iOS 14 limited photo access permission status #6

Closed williamjuan027 closed 3 years ago

williamjuan027 commented 3 years ago

There is a new photo permission status (PHAuthorizationStatus.limited) that was released in iOS 14 as outlined here, which also introduced a new API to get that status for iOS 14+ (PHPhotoLibrary.authorizationStatusForAccessLevel)

This PR adds the new status and the new API to get it for iOS 14+ and falls back to the original implementation for older iOS. @farfromrefug I also added NSPhotoLibraryUsageDescription to the demo's plist so I can test the permission without causing the app to crash :)

farfromrefug commented 3 years ago

@williamjuan027 wow i love it ! Thank you so much for your work!!! love that community!

williamjuan027 commented 3 years ago

Wow, that was fast. Thanks @farfromrefug , likewise 🍻