Comment

Comment by JimDabell

> on iOS, you cannot distinguish if you were granted a permission or not.

This isn’t correct. For instance, accessing location services provides CLAuthorizationStatus:

https://developer.apple.com/documentation/corelocation/claut...

…and push notifications have UNAuthorizationStatus:

https://developer.apple.com/documentation/usernotifications/...

…and health data has HKAuthorizationStatus:

https://developer.apple.com/documentation/healthkit/hkauthor...

…and contacts has CNAuthorizationStatus:

https://developer.apple.com/documentation/contacts/cnauthori...

…and photos has PHAuthorizationStatus:

https://developer.apple.com/documentation/photokit/phauthori...

Photos is a special case because the user has the option of denying access, giving limited access, or giving full access. You can determine if the user has denied access, but you cannot distinguish between limited access and full access.

parent JimDabell 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton