PushMessageListener
This class is a callback for the push message delivery. In order to modify the behavior simply extend this class and override methods
Since
5.3
Author
Umang Chamaria
Functions
Callback to customise the notification object if required. SDK uses this method to add/customise a few settings like vibration, led color etc. Make sure you call super before adding your own customisation.
Callback to customize the notification builder object if required. You can use this method to update the channel ID, update auto-dismiss time, and other properties of the notification builder.
Get the intent flags for the redirection intent
Callback triggered for custom action.
Return value of this method decides whether a notification should be shown or not. In case you are overriding this method ensure you call super(context, payload)
, notifications will not be shown if super is not called. Note: If the super(context, payload)
returns false
ensure that the method always returns false.
Override this method if you want to build your own notification UI notification using the provided notificationPayload.
Callback triggered when notification is cleared from the device's notification drawer.
This method is used to redirect the user to a specific screen or URL on notification click.
Callback triggered whenever notification is received by the application.
Callback triggered after the notification is shown.