redirectIntentForAnalytics

open fun redirectIntentForAnalytics(@NonNull context: Context, @NonNull openIntent: PendingIntent, @NonNull 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 openIntent.

Parameters

context

The context to use to create the android.app.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


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 openIntent.

Parameters

context

The context to use to create the android.app.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