NSLocationWhenInUseUsageDescription vs Always
NSLocationWhenInUseUsageDescription is the Info.plist key that holds the sentence iOS shows when your app asks to use the person’s location while it’s open, and NSLocationAlwaysAndWhenInUseUsageDescription is its partner for apps that also need location in the background. Almost every app that touches location needs the When In Use key, only a few need the Always one, and an upload that’s missing the right key gets an email from App Store Connect instead of a review.

If you own a shipping iOS app that a previous developer or agency built, deciding which location keys belong in it is now your job. RapidLabs fixes this kind of inherited release problem regularly, and we check location keys in the order below, with every rule taken from Apple’s current documentation.
What does NSLocationWhenInUseUsageDescription actually do?
It gives iOS the explanation it puts inside the location permission prompt, and without it your app can’t ask for location at all. Apple’s documentation for requestWhenInUseAuthorization() says the prompt contains the text from the NSLocationWhenInUseUsageDescription key and that the key is required when calling that method.
The system writes the prompt’s title from your app’s name, and your sentence sits underneath as the reason. Apple’s own example, from a food delivery app, reads “Your location allows you to view restaurants in delivery range of your address.”
Apple says an app is in use when it’s in the foreground and for a short time after it moves to the background. The system won’t relaunch a When In Use app later to deliver new updates, and that relaunch is what Always authorization adds.
Leaving the key out has two consequences: App Review rejects the build, and Apple warns that on a device the access attempt fails and might crash the app.
Which location keys does your iOS app need?
Most apps need only NSLocationWhenInUseUsageDescription, apps that work with location in the background need NSLocationAlwaysAndWhenInUseUsageDescription as well, and the older keys matter only for very old deployment targets or for macOS. Apple still documents four location keys, and each one applies to a different case.
| Key | What it’s for | Status in Apple’s docs |
|---|---|---|
| NSLocationWhenInUseUsageDescription | Location while the app is in use | Current, iOS 11 and later |
| NSLocationAlwaysAndWhenInUseUsageDescription | Location at all times, including background | Current, iOS 11 and later |
| NSLocationAlwaysUsageDescription | Background location on targets before iOS 11 | Deprecated |
| NSLocationUsageDescription | Location in a macOS app | Current on macOS, deprecated on iOS |
A store locator, a delivery tracker that only matters while the order screen is open, or a check-in button all fit When In Use. A mileage logger or a field service app that records visits while the phone is in a pocket needs Always.
Apple says that if you deploy to a target before iOS 11, you add the old Always key next to the new one with the same message. There’s a second reason to keep it: Apple’s reference page for requestAlwaysAuthorization() still names NSLocationAlwaysUsageDescription as required, so many teams ship all three keys with consistent wording.
How does iOS move an app from When In Use to Always?
iOS never hands out Always access in a single step, because the first prompt an app shows is always the When In Use one. Apple’s documentation says that to obtain Always authorization, your app must first request When In Use permission and then request Always.

Apps reach Always by one of two paths that behave differently. In the first, the app calls requestWhenInUseAuthorization(), the person grants it, and later the app calls requestAlwaysAuthorization(), which immediately shows a second prompt asking to upgrade. In the second, the app calls requestAlwaysAuthorization() straight away while the status is still undetermined. iOS then shows the When In Use prompt first and places the app in what Apple calls the Provisional Always state. The second prompt only appears when Core Location is about to deliver an event that needs Always access, and Apple notes that it typically appears when the app isn’t running.
That second path surprises teams, because a tester taps Allow While Using App, sees nothing else and assumes the Always request failed, although the upgrade prompt is really waiting for a background event such as a region crossing.
Apple’s reference adds two limits you should design for: Core Location limits calls to requestAlwaysAuthorization(), so after the app has called it once, further calls have no effect. And if the person chose Allow Once at the first prompt, Core Location ignores later Always requests, because that temporary grant expires when the app stops being in use and the status returns to not determined.
Ask for Always only at the moment the person turns on the feature that needs it, after your own screen explains why. Asking on launch burns the one chance you get, and Apple’s guidance on requesting authorization says that requesting at launch, or in a part of the app that clearly doesn’t use location, makes people more likely to deny it.
What do Precise Location and the iOS 14 accuracy keys change?
Since iOS 14, people can grant location without sharing their precise position, and two Info.plist keys let your app work with that choice instead of fighting it. NSLocationDefaultAccuracyReduced asks for approximate location by default, and NSLocationTemporaryUsageDescriptionDictionary holds the messages you show when you need precise location for one task.
Apple says that setting NSLocationDefaultAccuracyReduced to true makes every Core Location service run at reduced accuracy and leaves Precise Location switched off in Settings for your app, while leaving the key out equals false. Weather apps and store finders that only need a city lose nothing by asking for less.
The temporary dictionary covers the opposite case. If the person has chosen approximate location but one feature needs an exact position, such as showing the nearest pickup point, the app calls requestTemporaryFullAccuracyAuthorization(withPurposeKey:) with a key from that dictionary. Apple’s example uses one entry for nearby coffee shops and another for nearby friends, so each feature gets its own explanation.
On an inherited app, check whether any code assumes precise coordinates. A distance filter that silently returns nothing for someone sharing approximate location usually reaches you as a search bug report, which hides the permission cause.
Why do uploads and reviews fail over location keys?
Location keys fail at two separate checks: an automated upload check that finds location code in the binary without a matching key, and a human reviewer who finds the key but doesn’t accept how the app uses it.
The upload check is static, so App Store Connect reads the compiled code, sees a reference to Core Location, and asks for the purpose string even if no screen ever calls it. Apple says SDKs may reference APIs that need a purpose string, that the string is still required in that case, and that you’re responsible for every access, including access from external SDKs.
Four App Review guidelines cover the reviewer side. Guideline 5.1.1 asks that purpose strings clearly and completely describe how you use the data, and it gives location as its own example of offering an alternative: if someone declines, let them enter an address by hand. Guideline 5.1.5 says to use Location Services only when it’s directly relevant to the features the app provides. Guideline 2.5.4 says multitasking apps may only use background services for their intended purposes, which is what catches an app that declares background location without a feature that visibly needs it. And Guideline 5.1.2 says an app may not require people to enable location services in order to use the app or its content.
Together they cover the usual location rejections on inherited apps: a vague string fails 5.1.1, an Always request with no background feature fails 2.5.4 or 5.1.5, and a screen that stays blank until location is allowed fails 5.1.2. Fixing each one means changing how the product behaves, and each rejection costs another round of App Store review time.
If the app also collects location for analytics or ads, the same facts have to appear in your privacy nutrition labels, or the label and the purpose string will contradict each other.
How do you find the SDK that pulls in location?
Search the built app, not only your own source code, because the reference App Store Connect found may live inside a compiled framework. The quickest way is to export an archive, open the app bundle, and search each framework binary for Core Location symbols.

A search for CLLocationManager across the Frameworks folder of the built app usually points straight at the culprit. Typical sources include ad mediation SDKs, attribution and analytics kits, maps or places components, customer support widgets, and generic permission helpers that wrap every iOS permission in one package. React Native and Flutter apps add their own layer, because a plugin installed for one screen two years ago may still be linked even though nothing calls it.
Once you know the framework, add an honest purpose string if the feature is real, update to an SDK version without the location code, or drop the SDK. Apple also suggests asking the SDK’s developer which protected resources it uses and why.
Don’t invent a feature in the purpose string just to get the upload through, because a prompt that matches nothing on screen gives a reviewer grounds under 5.1.1. Our App Store rejection reasons breakdown covers the other privacy guidelines that tend to arrive alongside this one.
What should the location purpose string say?
It should name the feature and the benefit in one plain sentence that a person can check against what they see on screen. Apple’s rules say the text can’t be blank or only whitespace, must be shorter than 4,000 bytes, must be a string, and must give a specific, accurate reason for the access.
A good When In Use string sounds like “We use your location to show pickup points within walking distance.” A good Always string extends the same idea to the background: “Location in the background lets the app log mileage for each delivery automatically.” Each one names something a reviewer can find by tapping through the app.
“Location is required for the app to function” fails twice, because it explains nothing and implies the app won’t work without permission.
For other languages, Apple says to create a string catalog called InfoPlist.xcstrings, build so Xcode fills in the usage keys, and translate there, with every localized version held to the same rules.
How do you set the keys in Xcode, React Native, Expo and Flutter?
In a native project, set them in Xcode, either through the target’s Info tab or through the Signing and Capabilities editor. Apple’s documentation describes adding the “Location (When in Use)” capability and typing the purpose string, which makes Xcode add the INFOPLIST_KEY_NSLocationWhenInUseUsageDescription build setting instead of a raw Info.plist entry. Older projects keep the keys in an Info.plist file, so check that the same key isn’t defined in both places with different text.
In a bare React Native app, the keys go into ios/<AppName>/Info.plist like any native project, and the location library you use reads them at run time. Expo apps set them in the app config instead. The expo-location config plugin has a locationWhenInUsePermission option that sets NSLocationWhenInUseUsageDescription, a locationAlwaysAndWhenInUsePermission option for the Always key, and an isIosBackgroundLocationEnabled flag that adds location to UIBackgroundModes. All the text options default to “Allow $(PRODUCT_NAME) to use your location”, which is exactly the vague wording a reviewer can push back on, so replace it.
Flutter apps add the keys to ios/Runner/Info.plist by hand. If the app uses the permission_handler package, there’s a second step that’s easy to miss: its README says the PERMISSION_LOCATION macro in the Podfile enables both When In Use and Always permission, and that apps needing only When In Use should set PERMISSION_LOCATION_WHENINUSE instead. Leaving the broader macro on is one way an app that only needs When In Use ends up referencing the Always flow.
Whatever the framework, check the Info.plist inside the built app before you upload. Build settings, config plugins and Podfile macros all merge at build time, so the source file you edited isn’t always what ships.
What should you check on an inherited app before the next release?
Start from what the app does with location today, then make the keys, the code and the prompts agree with it. On a codebase you didn’t write, this check is cheap compared with a rejection cycle.

We run the same short sequence every time:
- Open the built app’s Info.plist and list every location key and its exact text.
- Search the source and the framework binaries for Core Location usage.
- Match each Always request to a background feature a reviewer can actually see.
- Check UIBackgroundModes for a
locationentry and confirm something uses it. - Test the Don’t Allow, Allow Once and approximate location paths on a real device.
The last step finds most of the real bugs. Teams test the happy path where everything is allowed, while plenty of real users tap Allow Once or switch off Precise Location, and the app’s behavior in those states is often untested code from years ago.
If the audit turns up more than a few mismatches, it’s usually a sign the app has drifted in other places too. That’s the point where an app takeover review is worth doing, because the same gaps tend to show up in signing, dependencies and the iOS privacy manifest.
What does a clean location setup look like?
A clean setup has a When In Use key with a specific sentence, an Always key only when a background feature visibly needs it, matching translations, and no SDK pulling in Core Location that nobody can explain. The prompt appears when the person taps the feature that needs location, never on launch, and the app still works for someone who says no.
On an inherited app, the five checks above get you there, as long as every Core Location reference ends up traced to a feature or an SDK someone can explain.
Frequently asked questions
What is NSLocationWhenInUseUsageDescription?
It's the Info.plist key that holds the sentence iOS shows when your app asks to use the person's location while the app is in use. Apple describes it as a message that tells people why the app is requesting access to their location while it runs in the foreground, and says the key is required if your iOS app uses APIs that access location while the app is in use. In Xcode's Info editor it appears as Privacy - Location When In Use Usage Description, and Xcode can also set it through the INFOPLIST_KEY_NSLocationWhenInUseUsageDescription build setting.
Do I need NSLocationWhenInUseUsageDescription if I already have NSLocationAlwaysAndWhenInUseUsageDescription?
Yes, in practice you ship both. Apple's documentation for requestAlwaysAuthorization says you must call it or the When In Use request before you receive location, and that the first prompt an app sees shows the When In Use string. An app that wants Always access starts with a When In Use prompt and only later asks for the upgrade, so the When In Use key has to exist either way. Keep the two strings consistent so the second prompt reads as a follow-up to the first.
Is NSLocationAlwaysUsageDescription still needed?
Apple lists NSLocationAlwaysUsageDescription as deprecated since iOS 11 and says to use it only when an app that needs background location deploys to targets earlier than iOS 11, in which case you add it alongside NSLocationAlwaysAndWhenInUseUsageDescription with the same message. Apple's own method documentation for requestAlwaysAuthorization still names the older key, though, and some SDKs check for it. Adding it with the same sentence as the newer key costs nothing and covers SDKs that still check for it.
Why did App Store Connect ask for a location key when my app never shows a map?
The upload check reads the compiled binary, so any code that references Core Location triggers the requirement, including code inside a third party SDK. Apple's documentation says external libraries may reference APIs that require a purpose string and that a purpose string is still necessary for App Review even if your app never calls those APIs. Ad networks, analytics kits, maps components and permission helper libraries are the usual sources. Either add an honest purpose string or remove the library that brings the reference in.
Can my app refuse to work until the user allows location?
No, not for features that don't depend on it. Apple's App Review Guideline 5.1.2 says an app may not require users to enable system functionalities such as location services in order to access functionality or content, and Guideline 5.1.1 asks apps to offer alternatives where possible, giving the example of letting someone enter an address by hand when they decline to share location. Design the screen so a person who taps Don't Allow can still use the app.
Stuck on a release, a crash, or an app nobody owns?
RapidLabs maintains, stabilizes and takes over existing iOS and Android apps. Send the app link, the stack, and what is going wrong, and you will get a plain answer on whether you need help at all.
Talk to a senior engineer about your app