Hi
Could not find in the forums or the documentation any mention of whether the last time a user was online is stored or is accessible in the system. Either by logging the last login or some sort of keep-alive message. Is there an existing mechanism for this ?
Hello @jell-o-fishi,
Nakama does not keep track of this automatically, a way of doing it would be to store a timestamp of last activity in the account metadata or a storage object within an RPC you know the user will call as part of his play session (but that would not put a lot of pressure by updating this object too often).
Another is to have a before or after hook in one of the Authentication functions and SessionRefresh functions (to make sure that a Refresh will also trigger the update).
Best.
2 Likes