makePendingIntentForDeeplink

open fun makePendingIntentForDeeplink(@NonNull context: Context, @NonNull deeplink: String, @NonNull pushIntentExtras: Bundle): PendingIntent

Make a PendingIntent suitable for notifications from a given deeplink. It will use Batch's builtin action activity.

This is useful for custom receivers, or BatchNotificationInterceptor implementations.

Return

A PendingIntent set to open Batch's builtin action activity to open the specified deeplink. Can be null if the deeplink is not valid.

Parameters

context

Context. Cannot be null.

deeplink

Deeplink string. Cannot be null.

pushIntentExtras

Raw extras of the push intent, used to copy data used by Batch to power features such as direct opens, or mobile landings. Cannot be null. If these extras don't have valid Batch data in it, a valid PendingIntent will still be returned, but some features might not work correctly.


open fun makePendingIntentForDeeplink(@NonNull context: Context, @NonNull deeplink: String, @NonNull remoteMessage: RemoteMessage): PendingIntent

Make a PendingIntent suitable for notifications from a given deeplink. It will use Batch's builtin action activity.

This is useful for custom receivers, or BatchNotificationInterceptor implementations.

Return

A PendingIntent set to open Batch's builtin action activity to open the specified deeplink. Can be null if the deeplink is not valid.

Parameters

context

Context. Cannot be null.

deeplink

Deeplink string. Cannot be null.

remoteMessage

Raw Firebase message content, used to copy data used by Batch to power features such as direct opens, or mobile landings. Cannot be null. If these extras don't have valid Batch data in it, a valid PendingIntent will still be returned, but some features might not work correctly.