I have integrated my app with Quickblox and I registered the group chat global listener after session has created as follow.
register GroupChatManagerListener after session created.
if (groupChatManager != null) {
groupChatManager.addGroupChatManagerListener(this);
}
and in the GroupChatManagerListener I have the following code.
@Override
public void chatCreated(QBGroupChat qbGroupChat) {
qbGroupChat.addMessageListener(mQBGroupChatMessageListener);
qbGroupChat.addMessageSentListener(mQBMessageSentListener);
}
I put the log, and it seems like the chatCreated never been called. Could anyone tell me what could be the possible reasons that this doesn't work or any suggestion to listen the group message globally.
Note: I implement exactly the same for private chat, and it works fine.
Thanks for help.