Android SDK - Listen for message received event
RespondidaIf we add ZopimChatFragment
to an activity then we need to implement ChatListener interface to listen for chat events.
ChatListener has onChatEnded() onChatInitialized() onChatLoaded() methods.
Is there a way to get the chatMessageReceived event.
Consider the following use case:
User is chatting with an agent. And user lefts the chat and is browsing some other section of the app. now meanwhile if the agent replies, the user will be unaware of the new message received until user goes back to the chat.
Now if we have an event or an observer registered to listen for new message, then we can notify the user for such new message and navigate the user back to chat if needed.
Note: We have checked the chat widget available in SDK but we have to disable it for some reason.
Thanks!
-
Hi Nikhil. I think you're looking for the chat log events, which includes an Agent Message event?
To turn off the chat widget, just follow the instructions here.
-
Thanks. This solved the issue.
Iniciar sesión para dejar un comentario.
2 Comentarios