Runtime Permissions & Privacy
How Android and iOS permission models work, when and how to ask, handling denial, and privacy disclosures in the stores.
Intermediate · about 4 hours · difficulty 2/5
Learn first: Designing for Touch and Small Screens, Navigation Patterns
Sensitive capabilities such as camera, location, contacts, microphone and notifications require user permission at runtime. How you ask determines whether users say yes.
Platform models
- iOS: you get one system prompt per permission. If denied, you can only send users to Settings. Each permission needs a usage description string explaining why.
- Android: dangerous permissions are declared in the manifest and requested at runtime. After repeated denials the system stops showing the dialog. Some permissions, like background location, need a separate step.
- Both offer granular choices: approximate vs precise location, limited photo library access, "allow once".
Asking well
- Ask in context, right when the user triggers the feature.
- Optionally show a short pre-prompt screen explaining the benefit before the system dialog.
- Handle every result: granted, denied, limited, and permanently denied (offer a button to open Settings).
- Re-check status when the app returns to the foreground; users change settings.
Privacy compliance
App Store privacy labels and Google Play's Data safety form must match what your app and SDKs collect. Request only what you need; unjustified permissions cause rejections.
Good enough to move on: a feature in your app handles granted, denied and permanently denied states gracefully.
Key concepts
- iOS permission model and usage strings
- Android runtime permissions
- Asking in context and pre-prompts
- Handling denial and Settings deep link
- Granular and one-time permissions
- Privacy labels and Data safety form
Mini project
Build a permission playground screen that requests camera, location and notifications in context and shows a correct UI for each possible status.
Check yourself
A user permanently denied camera access. What can your app do, and what can it not do?
Free resources
- Expo: Permissions (Expo)
- Android: Request runtime permissions (Android Developers)
- HIG: Privacy (Apple)