logNotificationClick

fun logNotificationClick(context: Context, intent: Intent)

Track notification click. Make sure the intent has the push notification payload received Firebase as intent extras.

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 the onCreate() of your intent which is fired on notification click.

Since

9.8.02

Parameters

context

instance of Context

intent

instance of Intent


fun logNotificationClick(context: Context, payload: Bundle)

Track notification click. Make sure the bundle has the push notification payload received from Firebase.

Note: Generally this method is not required. Only call this API if you are not passing the payload to MoEngage SDK.

Since

12.5.03

Parameters

context

instance of Context

payload

push payload, instance of Bundle