I'm developing one app that uses Twilio for video calls and chats. The problem I'm having is that onParticipantAdded is never triggered, even though I successfully register ConversationListener. I know that I've successfully registered ConversationListener, because my onMessageAdded is always triggered when expected, but onParticipantAdded (from the same listener) is never called.
From the code perspective, there is not much to share, I have ConversationListener defined as
private val conversationListener: ConversationListener = object : ConversationListener {
override fun onMessageAdded(message: Message?) {
Timber.d("Message added")
}
override fun onMessageUpdated(message: Message, updateReason: Message.UpdateReason?) {
Timber.d("Message updated: " + message.messageBody)
}
override fun onMessageDeleted(message: Message?) {
Timber.d("Message deleted")
}
override fun onParticipantAdded(participant: Participant) {
Timber.d("Participant added: " + participant.identity)
}
...
I register this listener with
conversation.addListener(conversationListener)
In my logs, I see "Message added" every time someone sends a message, but "Participant added" is never printed in logs, even though participants are leaving and entering the conversation.
Any ideas of what can be the problem here?