chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

User online or offline

Open DaveGram opened this issue 9 years ago • 1 comments

Hi, is it possible to see if the person in the chat is online?

Thank you.

DaveGram avatar Aug 22 '17 11:08 DaveGram

There should be an online characteristic on the user object. Go to the user object class and you should be able to find the correct one, they just call that to check if the user is online. The Chat SDK is set up to update user objects in the app when other users change their state.

If you go to the Firebase database you should be able to see that the user is updated as online or offline when they login or out.

Let me know if this helps,

Simon

simonsmiley64 avatar Aug 24 '17 00:08 simonsmiley64