Sub topic 9
Asking for Permissions at the Right Moment
This chapter assumes you understand screens, modals, forms, buttons, and product analytics events. It also assumes you can follow a basic onboarding flow and distinguish app-owned UI from a browser or operating-system prompt.
Permission requests ask users to grant access to a capability such as notifications, location, contacts, a camera, or microphone. The request is part of onboarding, but it should not automatically appear on the first screen. Users are more likely to accept when they understand the benefit and can act on that benefit immediately.
Explain the benefit before the system prompt
A system prompt usually has limited context. It may say that an app wants to send notifications, but it cannot explain how notifications help the user complete a task.
Use an app-owned explanation first. This is often called permission priming. The explanation should answer three questions:
- What capability does the app need?
- What will the user gain?
- Why is the request appearing now?
For example, after a user creates a project, explain that notifications can report project activity or assigned tasks. Then offer a button such as “Enable project updates.” Do not describe the permission as a requirement unless the feature truly cannot work without it.
async function primeThenRequest(
showExplainer: () => Promise<boolean>
): Promise<NotificationPermission> {
if (Notification.permission !== "default") {
return Notification.permission;
}
const acceptedExplanation = await showExplainer();
if (!acceptedExplanation) {
return "default";
}
return Notification.requestPermission();
}The function checks the current state before showing anything. If the user already granted or denied permission, the app should not repeatedly display an explanation. If the user declines the explanation, the app keeps the system prompt available for a later, more relevant moment.
Choose timing from user intent
Ask for permission immediately before the related value appears. A useful sequence is:
Avoid asking for several permissions in sequence. Each prompt interrupts the user's task and increases cognitive load. Request the least sensitive capability that supports the next useful action.
Handle denial and accessibility
Treat denial as a valid choice. The core flow should remain usable when possible. Provide a settings path later, explain what is unavailable, and avoid blocking the user with repeated prompts.
Permission education must also work with keyboard navigation, screen readers, zoom, and reduced motion. Give the explanation dialog a clear heading, move focus into it, keep the dialog's focus contained, and return focus to the triggering control when it closes. Use text and labels rather than color alone to communicate the result.
> callout warning > Never ask for a permission only because it might become useful later. Request it when the user can connect the capability to a task they just chose.
Measure the request as a flow
Track separate events for the explanation, the user's choice, the system result, and the resulting feature use. This distinguishes poor copy from poor timing and from a browser-level denial.
Useful events include:
permission_explainer_viewedpermission_explainer_acceptedpermission_resultpermission_feature_used
Do not treat acceptance as activation. A user can grant notifications and never read one. Measure whether the permission helps the user reach the product's first-value moment.
Exercise
When should an app request notification permission?
Show answer
Immediately before a notification-related benefit, after explaining that benefit in the app's own UI and giving the user a choice.