You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detect online and Offline Status of user and notify other users whenever status of user changes.
I am developing Chat Application for Android. i couldn't understand how to implement this feature.
i will be really thankful for any kind of favor. I am using LiveQuery for push notifications.
The text was updated successfully, but these errors were encountered:
This is not an issue of parse-server, but I have implemented the same idea in my case.
Add a column in _User class of type boolean called "isOnline".
Users set them selve online/offline and LiveQuery detects changes.
Additional you can add a column "lastSeen" of type date in _User class, to
check the last activity. If users offline than show the "lastSeen" value.
but what if the user directly turns off his internet there should be some method to detect the disconnection of the client from the host. like firebase realtime database has an onDisconnect method which is called after approx 120 sec after the client is disconnected from the host.
Have a look at the doc:
detect online and Offline Status of user and notify other users whenever status of user changes.
I am developing Chat Application for Android. i couldn't understand how to implement this feature.
i will be really thankful for any kind of favor. I am using LiveQuery for push notifications.
The text was updated successfully, but these errors were encountered: