When using iOS 10, I need users to choose between not allowing location and always allowing locations, so I added the key NSLocationAlwaysUsageDescriptionto Info.plist.
Now, with the new version of iOS 11, I need to add the following two keys to get an invitation to resolve the location - NSLocationAlwaysAndWhenInUseUsageDescriptionand NSLocationWhenInUseUsageDescription.
When I try to remove the seemingly superfluous NSLocationWhenInUseUsageDescription, it does not allow to display the location hint on iOS 11
Now the problem is that my users on iOS 10 have “when they are used” options in their settings that I don’t need.
Is there a way to create a version that allows “never” and “always” for iOS 10 and allow all three options on iOS 11?
source
share