Hi Support,
Using Version 2.0.7 beta1.
I have added below code,
getUserOnlineStatus: function()
{
var listenerID = “UNIQUE_LISTENER_ID”;
CometChat.addUserListener(
listenerID,
new CometChat.UserListener({
onUserOnline: onlineUser => {
/* when someuser/friend comes online, user will be received here /
console.log(“On User Online:”, { onlineUser });
},
onUserOffline: offlineUser => {
/ when someuser/friend went offline, user will be received here */
console.log(“On User Offline:”, { offlineUser });
}
})
);
},
registered this listener after user login (CometChat.login), but i am not receiving if any other user comes online and goes offline.
Please help me to identify the issue.