Forum Discussion
Integrate Push primer in mobile app
Hello RkCode03 You will have to remove the code that invokes the native push prompt.
Specially these codes.
For Obejective C:
requestAuthorizationWithOptions
For SWIFT
requestAuthorization
Javascrip
braze.requestPushPermission()
// or
appboy.registerAppboyPushMessages()
Java
android.permission.POST_NOTIFICATIONS
Disabling this code will disable the native push prompt to automatically appear and But that functionality will now be triggered by the IAM
Hi Manoj__ I commented out the suggested code and tested it on Android. I used an action-based trigger condition to show the push primer when the session starts, so that guests would see it during the app launch. However, what's happening is that the primer briefly appears when the app opens, but then it disappears automatically without any user interaction, and the native push notification prompt shows up immediately after.
On iOS, the behavior is reversed — the native push notification prompt appears first, and only then does the push primer show up.
Am I missing something in the configuration, or is there something I might be doing wrong here?
Related Content
- 2 years ago
- 2 years ago
- 5 months ago