Closed friedbunny closed 8 years ago
What happens on pre-iOS 8 when the Info.plist
entry isn't required? What if they are deploying for iOS 5 through 7?
Pre-iOS 8 will continue to automatically ask for location permission when location services are first used. This code only runs on iOS >=8 because of the requestWhenInUseAuthorization
selector check.
If an iOS app only has the
NSLocationAlwaysUsageDescription
key, we will never ask the user for location permission. This PR checks for bothalways
andWhenInUse
permission keys, then asks the user (with a preference for the less permissiveWhenInUse
).Fixes #648 (technically supersedes) by @duemunk, thanks!
/cc @incanus