Location is among the most sensitive things an app can ask for, and Apple’s rule about it is short and strict. Guideline 5.1.5 is one paragraph. Most of what a reviewer actually checks comes from it and from the privacy rules around it. The wording below is quoted from Apple’s App Review Guidelines, read on the day this post was written.
The rule
“Use Location Services in your app only when it is directly relevant to the features and services provided by the app. Location-based APIs shouldn’t be used to provide emergency services or autonomous control over vehicles, aircraft, and other devices, except for small devices such as lightweight drones and toys, or remote control car alarm systems, etc. Ensure that you notify and obtain consent before collecting, transmitting, or using location data. If your app uses Location Services, be sure to explain the purpose in your app; refer to the Human Interface Guidelines for best practices for doing so.”
Four requirements:
- Relevance. The location must be “directly relevant to the features and services provided by the app.”
- No emergency or vehicle control with location APIs, with narrow exceptions for small devices and toys.
- Notice and consent before you collect, send or use it.
- An explanation in the app of the purpose.
The rules around it
Location is also personal data, so two other guidelines apply:
- 5.1.1(ii), permission, asks that apps “ensure your purpose strings clearly and completely describe your use of the data.”
- 5.1.1(iii), data minimization, says to “only request access to data relevant to the core functionality of the app.”
- 5.1.1(iv), access, says not to manipulate people into unnecessary access, with the location example above: offer a manual address if they decline.
- 5.1.2(i) says you may not require users to enable system functionalities such as location services “in order to access functionality, content, use the app.”
See guideline 5.1.1 and guideline 5.1.2 for each.
Doing it well in a Flutter app
Suggestions, not Apple’s list:
- Ask at the moment of need. Do not request location on first launch. Ask when the user taps the feature that needs it, with a screen of your own that explains why first.
- Write the purpose string for the feature. In iOS, the string in
Info.plistis what the system dialog shows. “To show how far you are from the next stop” is specific. “This app uses your location” is not. - Request the least you need. If the feature works when the app is in use, do not ask for background access. If a city is enough, you do not need precise coordinates.
- Always have a no. Let people type a place instead. Test the app with location denied and make sure every screen still works.
- Do not send it anywhere you do not need to. Location sent to an analytics or ads SDK is the kind of sharing 5.1.2 asks you to disclose and get permission for.
An example of letting the user choose
The Santa Radar run needed to tell each user when Santa would reach their place. Its onboarding has a “Set your city” step, and the flyover time is shown in that city’s own time zone, with the name and tone kept on the device only. The record does not say whether the app also asks for device location, so this is not a claim about what it requests. It is a design pattern worth copying: when a feature can work from a choice the user makes, such as a city picked from a list, it needs no location permission to do its job, and it avoids the consent screen and the explanation for that feature.
Fixing a 5.1.5 rejection
- Read what the reviewer says is not relevant, unexplained or collected without consent.
- Remove location use that is not tied to a feature a user can see.
- Add or rewrite the purpose string so it names the feature.
- Move the permission request to the moment of need, preceded by your own explanation.
- Add the manual alternative for users who say no.
- Update the privacy policy and the App Privacy answers if location data leaves the device.
Reply template
Thank you for the review. We now request location only when the user taps [feature], preceded by an explanation. The purpose string reads “[text]”. Users who decline can enter [a city / address] instead, and the app works fully without location. Build [number] is attached.
Check before submitting
- Location is used only for a visible feature
- The purpose string names the feature
- The request comes at the moment of need, not at launch
- The app works with location denied
- Location data is not sent to third parties without disclosure and permission
- The privacy policy and App Privacy answers include it
For the equivalent Android rule see the Google Play sensitive permissions policy. The whole order of work is in the App Store submission checklist for Flutter apps.