Learn how to ask users for push notification permissions on iOS and Android using system prompts and in-app soft prompts.
An iOS and Android device displaying the system-level permission prompt.
requestPermission()
SDK method, itβs critical to ask at the right moment and with proper context. Both Apple and Google strongly recommend explaining the value of your notifications first.
The best way to do that? Use a βsoft promptββa custom in-app message that introduces the ask. If the user accepts, the system prompt appears. If they decline, nothing happensβno harm done.
Example shows an in-app message that leads to a system-level push permission prompt.
Remove any automatic permission prompts
requestPermission()
or optIn()
methods if youβre calling them on app start.requestAuthorizationWithOptions
and any methods generating push tokens.requestPermissions
and any methods generating push tokens.Create or edit the in-app message
Edit the default Push Permission Prompt template or create your own.
Set your audience as "Show to all users" because the "Push Permission Prompt" click action will make sure it is only shown to the unsubscribed subscriptions.
Customize the message design
The in-app message block editor allows you to create messages asking users to opt in to push notifications.
Add the push permission prompt click action
The in-app message block editor allows you to add a click action to a button to prompt for push permission.
Example of the required permission prompt on iOS.
Choose a trigger
Trigger options to control when the message is shown.
Triggers can be set to time when users see the in-app message.
Schedule and frequency
Schedule when users will start seeing your in-app message and how often they see it.
requestPermission()
or optIn()
SDK methods.
This is great for custom flows, such as: