Notification Controller
Controller in charge of push notifications.
Properties
iAdvize push notifications channel id. Use this id to group the iAdvize Push Notifications in a dedicated channel, doing so will ensure you can clear them all without affecting your own client app push notifications, and thus allow to clear them using the clearIAdvizePushNotification() API.
Functions
Clears the iAdvize Push Notifications from the dedicated notification channel. This is done automatically on Chatbox opening but you can call this API manually anytime.
Creates the iAdvize push notifications channel. Use this dedicated channel to group the iAdvize Push Notifications, doing so will ensure you can clear them all without affecting your own client app push notifications, and thus allow to clear them using the clearIAdvizePushNotification() API.
Disable push notifications for the current user on this device.
Enable push notifications for the current user on this device.
Analyze the given notification to check if it's a push notification coming from the iAdvize Conversation SDK. If yes it returns true
, otherwise false
.
Register the push token of your user device so it will receive push notifications for new messages received during a chat conversation.