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

# NSWidgetWantsLocation

A Boolean value that indicates a widget uses the user’s location information.

## Discussion

To access the user’s location information from a widget, set the value to <doc://com.apple.documentation/documentation/Swift/true> in the widget extension’s `Info.plist` file.

Before a widget can access location information, the containing app must request authorization from the user. The containing app’s `Info.plist` file must also contain relevant purpose strings. For more information, see <doc://com.apple.documentation/documentation/CoreLocation/requesting-authorization-to-use-location-services>.

---

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)