<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BundleResources",
  "identifier" : "/documentation/BundleResources/Information-Property-List/NSLocationWhenInUseUsageDescription",
  "metadataVersion" : "0.1.0",
  "role" : "Property List Key",
  "symbol" : {
    "kind" : "Property List Key",
    "modules" : [
      "Bundle Resources"
    ],
    "preciseIdentifier" : "plist:Information_Property_List.NSLocationWhenInUseUsageDescription"
  },
  "title" : "NSLocationWhenInUseUsageDescription"
}
-->

# NSLocationWhenInUseUsageDescription

A message that tells people why the app is requesting access to their location information while the app is running in the foreground.

## Discussion

Use this key if your iOS app accesses location information only when running in the foreground. If your app needs location information when in the background, use [`NSLocationAlwaysAndWhenInUseUsageDescription`](/documentation/BundleResources/Information-Property-List/NSLocationAlwaysAndWhenInUseUsageDescription) instead. For more information, see [Choosing the  Location Services Authorization to Request](/documentation/BundleResources/choosing-the-location-services-authorization-to-request).

If you need location information in a macOS app, use [`NSLocationUsageDescription`](/documentation/BundleResources/Information-Property-List/NSLocationUsageDescription) instead.

> Important:
> This key is required if your iOS app uses APIs that access the user’s location information while the app is in use.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)