logNotificationReceived

fun logNotificationReceived(context: Context, payload: Map<String, String>)

Tracks notification impression.

Note: Generally this method is not required. Only call this API if you are not passing the payload to MoEngage SDK. Call this method from onMessageReceived() of your Firebase Receiver.

Since

9.8.02

Parameters

context

instance of Context

payload

Push Campaign Payload


fun logNotificationReceived(context: Context, notificationPayload: Map<String, String>, appId: String)

Tracks notification impression.

Note: Generally this method is not required. Only call this API if you are not passing the payload to MoEngage SDK. Call this method from onMessageReceived() of your Firebase Receiver.

Since

12.0.00

Parameters

context

instance of Context

notificationPayload

Push Campaign Payload

appId

Account identifier, APP ID on the MoEngage Dashboard.