ansible-role-varnish icon indicating copy to clipboard operation
ansible-role-varnish copied to clipboard

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 ?

Open richanshah opened this issue 1 year ago • 11 comments

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}"); });

richanshah avatar Aug 22 '23 09:08 richanshah

unfortunately, we don't have other alternatives for now. initially, the subscribeToUserLastActivityStatus listener was developed to display user status in opened private chat, and in other places (dialogs list, contacts list, etc.) planned to use the Future<int> getLastActivity(int userId) method.

TatankaConCube avatar Aug 22 '23 09:08 TatankaConCube

even after listening to this subscribeToUserLastActivityStatus , i am not getting this status continuously. have u keep any interval when it will get updated?

richanshah avatar Aug 22 '23 13:08 richanshah

do you mean that you don't receive events in the callback?

TatankaConCube avatar Aug 22 '23 14:08 TatankaConCube

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

richanshah avatar Aug 24 '23 08:08 richanshah

it stills give me last online status data only

richanshah avatar Aug 24 '23 08:08 richanshah

on the base of what u r giving last activity call back?

richanshah avatar Aug 24 '23 08:08 richanshah

pause the app or destory the session

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

on the base of what u r giving last activity call back?

when the user makes the chat login/logout actions our chat server sends the special stanzas for subscribed users

TatankaConCube avatar Aug 24 '23 09:08 TatankaConCube

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.

TatankaConCube avatar Aug 24 '23 09:08 TatankaConCube

pause the app or destory the session

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

on the base of what u r giving last activity call back?

when the user makes the chat login/logout actions our chat server sends the special stanzas for subscribed users

okay

richanshah avatar Aug 24 '23 09:08 richanshah

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.

no problem, please update me once its done.

richanshah avatar Aug 24 '23 09:08 richanshah

please update me once its done.

ok, sure

TatankaConCube avatar Aug 24 '23 09:08 TatankaConCube