onMessageReceived

fun onMessageReceived(context: Context, payload: Bundle)

Callback which is triggered when a push payload is received. This method is responsible for creating the notification object and posting the notification.

Parameters

context

instance of Context

payload

push payload


fun onMessageReceived(context: Context, payloadMap: Map<String, String>)

Callback which is triggered when a push payload is received. This method is responsible for creating the notification object and posting the notification.

Parameters

context

instance of application Context

payloadMap

push payload.