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
-
- (void) hasPendingMessages: (NSString*)siteID andCompletionHandler:(void (^)(PendingMessageResponse *response))completionBlock;
hasPendingMessages should be called only after setting persistent customer id's.
PendingMessageResponse
Public Methods
-
- (BOOL)hasPending
returns true or false
ProfileManager.getInstance().addUniqueCustomerID("email", andValue: "test@att.com")
let pending = PendingMessagesAPI()
pending.hasPendingMessages("10003715") { (response) in
}