onNewMessageReceived

abstract fun onNewMessageReceived(    @NonNull conversationId: String,     @NonNull message: BaseMessage,     @NonNull internationalNumber: String,     isNoNotification: Boolean)

Called when a message is received from backend whether for synchronization (from your WebChat) or received at runtime

FYI : this callback is not called when a conversation or a message list request is received, this callback is only for messages at runtime

Parameters

conversationId

The conversation ID

message

The message for a single conversation

internationalNumber

The international number of the sender of the message.

isNoNotification

It represent if user need to show a notification or not.