I’m working on a mobile app using Zeroqode Air Native plugin. I want to trigger different push permission prompts based on which button the user clicks within the app.
Is it possible to trigger different push permission prompts using the Air Native plugin, a different plugin or custom JS? What’s be the best approach to achieve this?
Thanks!
Hi @cohereandnow,
Thank you for your message.
As far as we know, it is possible to trigger just One Permission prompt by using the Air Native plugin - Show Permission Prompt action.
Once the user accepts this prompt, he will be able to receive push notifications.
You can also customize this OneSignal Prompt inside your OneSignal Console.
Given the current limitations, the best approach would be to create custom pre-prompt dialogs in your Bubble app to inform users why you’re asking for notification permissions. Then, trigger the standard permission request using the Air Native plugin based on the user’s actions.
If you need further help with specific implementation or want to explore a more customized solution, feel free to ask!
Also, we recommend exploring the OneSignal Documentation and API integration via the Bubble API Connector plugin for extra functionality.
Best regards,
Zeroqode Support Team.
Thank you.
“Then, trigger the standard permission request using the Air Native plugin based on the user’s actions.”
By the standard permission request do you mean I can skip the OneSignal prompt and directly show the native push notification permission prompt from iOS or Android?
Is an action in the Air Native plugin? If so, can you please let me know what this action is called? I don’t see that option when I search for “push notifications” or use the Request permission action.
the “One signal - Show push prompt a air native” is the prompt I’d like to skip all together and just show the Native permission request instead.
Thanks for your help.
Hi @cohereandnow,
Thank you for your reply and sorry for the delay over the weekend,
No, OneSignal Show Push Prompt is mandatory to display so the user can either accept and receive push notifications or decline this prompt and not receive push notifications.
Example when Button is clicked - Show Push Prompt.
If you skip this action, and do not show the push prompt, users will not be able to receive push notifications from your app since they did not accept the prompt before.
Once you use plugin action: OneSignal - Show Push Prompt AirNative A
The Device will be Subscribed and will be possible to send him Push Notifications by using the plugin actions, the most common actions used are either sending push notifications to one user or a list of users.
Please refer to the links below from the Air Native plugin documentation.
### OneSignal push notification to individual
### OneSignal push notification to list of users
If you have other questions, feel free to reach out.
Regards,
Zeroqode Support Team.