ASAPP.getChatStatus(success:failure:)
to get the current conversation status. The first parameter of the success handler provides a count of unread messages, while the second indicates whether the chat is live. If isLive
is true, it means the customer is currently connected to a live customer support agent, even if the user isn’t currently on the chat screen or the application is in the background.
Example:
ASAPP.debugLogLevel
to.debug. Please see ASAPPLogLevel
for more options and make sure to set the level to .errors
or .none
in release builds.
Example:
ASAPP.clearSavedSession()
. This will also disable push notifications to the customer.
ASAPP.setIntent(_:)
, passing in a dictionary as described above. This should only be called if a chat view controller already exists.
ASAPPDelegate
protocol, including the chatViewControllerDidReceiveChatEvent(name:data:)
method. Please ask your Implementation Manager if you have questions regarding chat event names and data.