#how to implement user status online/offline & last online time.
11 messages · Page 1 of 1 (latest)
what is minimum amount of interval duration is needed for updating presence doc to keep user status active?
up to you, depending on your requirements. However, make sure not to hit the rate limit
like in firebase we do the same listen to event when it disconnects we make the user's status offline. and if user have unstable network then firebase wait for 60 seconds for user to connect back before making user offline.
so how realtime connection will handle the unstable connection?
the suggestion was not to use realtime...
oh, I see, okay. so there is a chance of inaccuracy without some kind of real-time connection.
cloud function cron job to check and update user presence based on your suggestion without using realtime can work, but will it be more expensive?
cron job for all users every minute can make it almost realtime user presence,
No, function cron job was also not suggested
then what, please shower some light, i'm new here.