-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for online status i have added this code. but if i want status for all the users in my list there is not easy way, can u add method for the same in sdk ? #290
Comments
unfortunately, we don't have other alternatives for now. initially, the |
even after listening to this subscribeToUserLastActivityStatus , i am not getting this status continuously. have u keep any interval when it will get updated? |
do you mean that you don't receive events in the callback? |
I am getting online status when another user logins but whby hen i pause the app or destory the session i am not getting offline status or any callbacks by which i can identify |
it stills give me last online status data only |
on the base of what u r giving last activity call back? |
this callback should work on the user's chat login/logout action. when the user you subscribed to makes the chat login/logout action the subscribed user should receive these events
when the user makes the chat login/logout actions our chat server sends the special stanzas for subscribed users |
I requested from the back-end team the modification for this feature for subscription on multiple users and triggering the active/inactive user's events too, but they don't have the end date of the implementation of it. |
okay |
no problem, please update me once its done. |
ok, sure |
for isOnline status, i have added this code. but if i want status for all the users in my list there is not easy way, can u add method for the same in sdk ?
CubeChatConnection.instance.lastActivityManager
?.subscribeToUserLastActivityStatus(cubeUser.id!, callback: (seconds) {
log("lastActivity: userId = ${cubeUser.id}, seconds = ${seconds}");
});
The text was updated successfully, but these errors were encountered: