ASAPP.instance.disablePushNotifications().
ASAPP.instance.user
(or clear the session) to prevent the customer from receiving unintended push notifications.Intent
data from that push notification.
To help differentiate notifications from ASAPP and others your app might receive, ASAPP recommends that the push notification has a click_action
with the value asapp.intent.action.OPEN_CHAT
. For more information on how to set a click action, please see the Firebase documentation. With a click action set to the push notification, you will need to add a new intent filter to match it:
shouldOpenChat
simply checks if the intent action matches the recommended one, but its use is optional.
FirebaseMessagingService.onMessageReceived
. Check if that notification is from ASAPP:
ASAPP.instance.conversationStatusHandler
.
asapp_chat
, but it is possible to customize the channel being used.
To customize the channel used by persistent notifications, override the following string resources: