redirectIntentForAnalytics

fun redirectIntentForAnalytics(context: Context, openIntent: PendingIntent, message: RemoteMessage, autoCancel: Boolean): PendingIntent?

Returns a PendingIntent that will redirect to our internal Service to handle notification opened analytics. Once the analytic has been logged it will redirect the application to the provided [ ].

Parameters

context

The context to use to create the PendingIntent

openIntent

PendingIntent to be used when the notification is clicked.

message

RemoteMessage associated with the notification

autoCancel

If true, the notification will be clear from the notification shade once it has been clicked


fun redirectIntentForAnalytics(context: Context, openIntent: PendingIntent, message: NotificationMessage, autoCancel: Boolean, bundle: Bundle?): PendingIntent

Returns a PendingIntent that will redirect to our internal Service to handle notification opened analytics. Once the analytic has been logged it will redirect the application to the provided [ ].

Parameters

context

The context to use to create the PendingIntent

openIntent

PendingIntent to be used when the notification is clicked.

message

NotificationMessage associated with the notification

autoCancel

If true, the notification will be clear from the notification shade once it has been clicked