Firebase find .info/connected of another user -


any idea how find online status of other users firebase realtime database?

if .info/connected of current user, receive user's status, how find same of user?

say joe. joe knows status 'info/connected'. joe want status of john.

how joe info/connected of john? way make happen?

.info/connected not meant used detect online/offline state of other users.

its main purpose app know if connected/disconnected firebase database.

from documentation :

/.info/connected boolean value not synchronized between realtime database clients because value dependent on state of client. in other words, if 1 client reads /.info/connected false, no guarantee separate client read false.

the best way check if other users online would create entry in database everytime user logs in , depending on value show if user online or offline.

the following tutorial might helpful :

https://www.youtube.com/watch?v=xqowbpadoza&t=1s


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -