@NonNull open static fun redirectIntentForAnalytics(@NonNull context: Context, @NonNull openIntent: PendingIntent, @NonNull message: NotificationMessage, 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 .
context
- Context: The context to use to create the android.app.PendingIntent
openIntent
- PendingIntent: PendingIntent to be used when the notification is clicked.
message
- NotificationMessage: Message associated with the notification
autoCancel
- Boolean: If true, the notification will be clear from the notification shade once it has been clicked