mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

Better support for NSLocationAlwaysUsageDescription in info.plist #648

Closed duemunk closed 8 years ago

duemunk commented 9 years ago

If project uses NSLocationAlwaysUsageDescription, use appropriate access request.

If a project is set up for NSLocationAlwaysUsageDescription and not NSLocationWhenInUseUsageDescription, it would be expected that RMMapView asks for requestAlwaysAuthorization and not requestWhenInUseAuthorization. Since iOS doesn't allow for a second request this is really critical i.e. if RMMapView has asked for requestWhenInUseAuthorization, the app can ask for requestAlwaysAuthorization later, but a prompt is not shown to the user.