Why use a push permission prompt?
To send push notifications that appear as banners, show on the lock screen, and play sounds, your app must first request permission from the user. On iOS, Android, Huawei, Amazon, and Web, this involves displaying a system-level permission prompt.
requestPermission() SDK method, but without proper context, users are more likely to decline — and on iOS, a declined prompt cannot be shown again.
The recommended approach is a “soft prompt” — a custom in-app message that introduces the request before the system prompt. If the user accepts, the system prompt appears. If they decline, nothing happens and you can ask again later.

Set up an in-app push permission prompt
Remove any automatic permission prompts
Before you begin, make sure your app isn’t already triggering the native push prompt automatically:
- Remove
requestPermission()oroptIn()methods if you’re calling them on app start. - Remove native iOS calls to
requestAuthorizationWithOptionsand any methods generating push tokens. - Remove Android calls to
requestPermissionsand any methods generating push tokens.
Create or edit the in-app message
Go to Messages > In-App, then either:
Set the audience to Show to all users. OneSignal automatically filters this message to only show to users who haven’t subscribed to push, based on the Push Permission Prompt click action.
- Edit the default Push Permission Prompt template, or
- Click New Message to create your own.


Customize the message design
Personalize the look, feel, and wording to fit your app. Let users know what kind of notifications they’ll get and why they’re valuable.See Design in-app messages with drag and drop or Design in-app messages with HTML for details.

Add the push permission prompt click action
Add a Push Permission Prompt click action to any button or image in your message. When tapped, the system prompt appears.

If a user has already denied permission, the button directs them to your app’s notification settings instead.


In-app messages with a Push Permission Prompt action are not shown to users who have already allowed notifications.
Choose a trigger
The audience controls who is eligible to see the message. Triggers control when it appears.
You can trigger the message:

- On app open
- After a set amount of session time
- On a specific user event
- Programmatically, using the in-app message SDK methods for full control over timing and context

Schedule and frequency
Control how often the message appears:
- Only once — Low chance of converting users who weren’t ready the first time.
- Every time conditions are met — Too aggressive and may annoy users.
- Multiple times (recommended) — Set a high max (e.g., 9999) with a gap between views (e.g., 2 weeks). This re-prompts unsubscribed users periodically without being intrusive. Adjust the gap based on your use case.

Update your message and set it live. Monitor your stats and adjust the gap between displays as needed.
Programmatically show the permission prompt
You can trigger the push permission prompt manually using therequestPermission() or optIn() SDK methods. This is useful for custom flows such as:
- A preference center
- A user profile screen
- Specific in-app events
Track push permissions and prompt results
When using in-app messages to prompt for push, you can track click actions with the in-app message click listener. If the in-app message displays but the user doesn’t tap the button, use the in-app message lifecycle events to track impressions and dismissals. To track the result of the system-level permission prompt itself, use the push permission listener.You can send these SDK events to your backend or analytics tool of choice.
FAQ
What happens if a user denies the push permission prompt?
On iOS, denying the system prompt permanently disables push notifications for your app — the prompt cannot be shown again. On Android, the user gets one more chance (two total). After all attempts are used, the user must re-enable notifications manually in Settings > Notifications on their device. The OneSignal SDK’srequestPermission(fallbackToSettings: true) method can redirect users to their notification settings if permission was previously denied.
Can I customize the native system permission prompt?
No. The native iOS and Android permission dialogs are controlled by the operating system and cannot be customized. You can only control the soft prompt (the in-app message shown before the system prompt). Use the soft prompt to explain the value of your notifications, set expectations, and increase the chance of an “Allow” on the system prompt.Can I still prompt users who have provisional notifications?
Yes. If you use iOS provisional push notifications, you can still show a soft prompt to convert those users to full push subscribers. Time the prompt strategically — after the user has seen value from your provisional notifications.How do I re-prompt users who previously denied push?
You cannot show the system permission prompt again once the user has declined on iOS (or twice on Android). Instead, use therequestPermission(fallbackToSettings: true) SDK method, which opens the app’s notification settings page so the user can enable notifications manually. Pair this with an in-app message explaining why notifications are valuable.
When did Android start requiring permission prompts?
Android 13 (API level 33) introduced the runtime notification permission, requiring explicit user consent for push notifications.- Released: August 2022 (Pixel devices)
- Required for target SDK: As of August 31, 2023, all new apps and updates on Google Play must target API level 33 or higher.
- Source: Google’s developer guide on notification permissions
iOS provisional push notifications
Send notifications to the Notification Center without an upfront permission prompt on iOS 12+.