Provide a purpose string
In plain words
When your app uses a protected resource, you must provide a valid purpose string explaining why it needs access; the system prompts the user the first time the app tries to access it.
- The system generates the prompt title with your app's name; you supply the purpose string, ideally one accurate, concise, complete sentence.
- If permission is granted, the system remembers it and doesn't prompt again; if denied, that attempt and further attempts fail in a resource-specific way.
- For location data, the person can choose Allow Once to grant access for one session only.
- Without a valid purpose string, access attempts fail and might crash your app; Xcode detects such crashes and reports an issue.
- Add the string in Xcode's Signing and Capabilities editor; Xcode stores it as a build setting for an Information Property List key.
- If your app supports multiple locales, also localize the purpose string for each locale using an InfoPlist.xcstrings string catalog.
From the official text
The first time your app attempts to access a protected resource, the system prompts the person using the app for permission. In the following example, an iOS app called FoodDeliveryApp, which provides a food delivery service, generates a prompt requesting access to the person’s location: If the person grants …
Read the full official text ↗ Open in the StoreRules library Ask whether your app complies
Developers' cases about this clause
No cases yet.