logNotificationReceived
fun logNotificationReceived(context: Context, payload: Map<String, String>): MoETask<NotificationTrackingResult>
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
Throws
if the SDK is not initialized.
fun logNotificationReceived(context: Context, notificationPayload: Map<String, String>, appId: String): MoETask<NotificationTrackingResult>
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.
Throws
if the SDK is not initialized.