public interface IUnbluNotificationApi
| Modifier and Type | Method and Description |
|---|---|
void |
clearOpenConversationId()
This method should be called when you wish to dispose the last conversationId obtained, referring to the last last received message/call
|
java.lang.String |
getOpenConversationId()
This method should be called to obtain the last conversationId referring to the last last received message/call
|
boolean |
handleNotificationClicked(java.util.Map<java.lang.String,java.lang.String> notificationData,
android.content.Context context)
This method should be called for each notification which is clicked by the user and then was the initial intent to start an activity.
|
boolean |
onMessageReceived(RemoteNotification notification,
android.content.Context context)
This method should be called for each new notification.
|
void |
setDeviceToken(java.lang.String token) |
void |
setOpenConversationId(java.lang.String conversationId)
This method should be called to set the conversationId referring to the last last received message/call
|
boolean onMessageReceived(RemoteNotification notification, android.content.Context context)
| App state | New Message | Read Message | Incoming Call | Revoke Call |
|---|---|---|---|---|
| background | show notification | remove notifications related to this thread | show notification | remove notifications related to this thread |
| foreground unblu UI closed | show notification | remove notifications related to this thread | Trigger IUnbluUiEventApi.UiVisibilityRequest | remove notifications related to this thread |
| foreground unblu UI open | Does nothing | remove notifications related to this thread | Does nothing | remove notifications related to this thread |
notification - The remote notificationcontext - The context of the applicationboolean handleNotificationClicked(java.util.Map<java.lang.String,java.lang.String> notificationData,
android.content.Context context)
IUnbluUiEventApi.UiVisibilityRequest is triggered.notificationData - The data of the notificationcontext - The context of the applicationvoid setDeviceToken(java.lang.String token)
void setOpenConversationId(@NonNull
java.lang.String conversationId)
conversationId - to be set to openjava.lang.String getOpenConversationId()
void clearOpenConversationId()