onPendingIntent

public PendingIntent onPendingIntent(PendingIntent pendingIntent, Intent intent)

Callback for setting the PendingIntent of a local notification. The application layer can use this method to modify the settings in the PendingIntent to customize the click behavior of the local notification. By default, the SDK navigates to the corresponding chat UI when a local notification is clicked.

Return

The PendingIntent that needs to be configured in the local notification.

Parameters

pendingIntent

The default PendingIntent provided by the SDK.

intent

The intent carried within the pendingIntent. The following information can be obtained from the intent: intent.getStringExtra(RouteUtils.CONVERSATION_TYPE); intent.getStringExtra(RouteUtils.TARGET_ID); intent.getParcelableExtra(RouteUtils.MESSAGE);