A message that tells the user why the app is requesting access to the user's location at all times.
SDK
- iOS 8.0–10.0Deprecated
Framework
- Core Location
Details
- Name
- Privacy - Location Always Usage Description
- Type
- string
Discussion
Use this key if your iOS app accesses location information in the background, and you deploy to a target earlier than iOS 11. In that case, add both this key and NSLocation
to your app’s Info
file with the same message. Apps running on older versions of the OS use the message associated with NSLocation
, while apps running on later versions use the one associated with NSLocation
.
If your app only needs location information when in the foreground, use NSLocation
instead. For more information, see Choosing the Location Services Authorization to Request.
If you need location information in a macOS app, use NSLocation
instead.
Important
This key is required if your iOS app uses APIs that access the user’s location at all times and deploys to targets earlier than iOS 11.