getPushContentIntent
fun MindboxRemoteMessage.getPushContentIntent(context: Context, activity: Class<out Activity>, notificationId: Int, extras: Bundle? = null): PendingIntent?
Creates a PendingIntent for the push notification content.
This method creates a PendingIntent with the unique push key in the extras. This is used by the Mindbox SDK to properly identify and handle a push notification clicks that does not include any push buttons.
Note: Use this method to get the PendingIntent for androidx.core.app.NotificationCompat.Builder.setContentIntent.
Return
A PendingIntent to be used with androidx.core.app.NotificationCompat.Builder.setContentIntent.
Parameters
context
The context used to create the PendingIntent.
activity
The activity class to be launched when the notification is clicked.
notificationId
The unique ID of the notification.
extras
Additional data to be included in the intent.