getIntent

abstract fun getIntent(@NonNull context: Context, @NonNull deeplink: String): Intent

Called when a deeplink is triggered by Batch (could be from a push notification or an in-app message). If null is returned the default behavior will be used.

Recommended: use this method when you want to customise the intent for a deeplink when a CTA/push is clicked.

Return

The intent to launch

Parameters

context

The current context

deeplink

The deeplink associated with the action