Push Callbacks
Last updated
Was this helpful?
Last updated
Was this helpful?
When initializing Netmera, you can register different types of callbacks:
In-App Message Callbacks (.nmInAppMessageActionCallbacks()
)
Push Action Callbacks (.nmPushActionCallbacks()
)
Web Widget Callbacks (.nmWebWidgetCallbacks()
)
During the initialization of Netmera, specify which callbacks your app should handle and include the callback lines during the initialization step ().
.nmInAppMessageActionCallbacks()
.nmPushActionCallbacks()
.nmWebWidgetCallbacks()
Extend NetmeraPushBroadcastReceiver
and override the necessary callback methods. Avoid using Toast
messages in the production environment.
To trigger an in-app callback, select the banner style in the Netmera control panel.
The pop-up style will not trigger the callback.
Implement the NMWebWidgetCallbacks
interface and override the onDeeplinkTriggered()
and onOpenUrlTriggered()
methods.
Netmera Panel Settings:
Select "Widget" Style: Ensure the widget is set to "Widget" style in the Netmera panel to trigger the callback.
Choosing "Manage App": If the action should be handled within the app, select "Manage App" when assigning an action in "Create New Widget." Without this, the SDK will handle it, but the callback won't trigger.