Pending Async Messages
SDK has exposed an API for Application to check if there is any pending messages from agent to the user.
SDK uses persistent customer ID's to query the back end. Application must provide persistent customer id as part of SDK initialization.
ConversationStatusAPI
Public Methods
-
public void hasPendingMessages(String siteID,final OnSuccessListener
sListener, final OnErrorListener eListener) hasPendingMessages should be called only after setting persistent customer id's.
PendingMessageResponse
Public Methods
-
public boolean hasPendingMessages()
returns true or false
NuanMessaging.getInstance().getProfileManager().setUniqueCustomerId("email", "test@test.com");
ConversationStatusAPI conversationStatusAPI = new ConversationStatusAPI();
conversationStatusAPI.hasPendingMessages("10003715", new OnSuccessListener() {
@Override
public void onResponse(PendingMessageResponse response) {
}
}, null);