@Nullable abstract fun getNotificationPendingIntent(@NonNull context: Context, @NonNull notificationMessage: NotificationMessage): PendingIntent?
Provide a PendingIntent for the desired destination when a notification is opened. This value will be set as the 'content intent' on the notification.
The SDK will wrap the returned PendingIntent
such that it can log analytics for when the notification is clicked.
context
- Context: The context to use when creating the PendingIntent
notificationMessage
- NotificationMessage: The message for the PendingIntent
Return
PendingIntent?: The PendingIntent for the notificationMessage
.
See Also
androidx.core.app.NotificationCompat.Builder#setContentIntent(PendingIntent)