[bug] - User last active does not automatically update
See original GitHub issueDescribe the bug I think we created the field with the intention of updating it on login, but guessing forgot.
To Reproduce Logout Go to own map pin and see last active Login View map pin again (last active will not have changed)
Expected behavior
Likely will want a server-side or user store trigger that populates lastActive and modified on successful login. Server-side likely more reliable, but client side easier (could just add to existing userSignedIn
field.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why Did Last Active Time Disappear on Messenger? - ITGeared
Find out why the Last Active time disappeared from your Facebook Messenger app. This article explains what happened and to get it back!...
Read more >Fix: Messenger not showing the Last Active status
If Facebook Messenger is not showing the last active status, make sure to clear the app's data, reinstall the app, or use alternative...
Read more >How to change your Automatic Updates settings by using ...
This option automatically downloads updates, but requires user interaction to install them. This option notifies you that there are updates available. It ...
Read more >Manage app updates - Managed Google Play Help
Troubleshooting. If apps aren't updating automatically on the devices you manage after following the best practices in this article, we recommend sending a...
Read more >Update your Apple Watch - Apple Support
You can get the latest version of watchOS directly on your Apple Watch, or use your iPhone to update.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reassigned. Thanks @danitrod!
This should hopefully be fairly straight-forward, the userstore has a
userSignedIn
method which can be used to also update the last active once the user profile has been successfully loaded.The only complication would be with the
functions/src/userUpdates/backupUser.ts
function, which by default creates a backup of the user whenever the profile is updated - which we probably don’t want to do if the only thing that is changing is the last active time. But it seems that function is not currently active (not sure why, but it would otherwise be called in thehandleUserUpdates
), so probably would be good enough to just add a note to update it in the future if it becomes enabled again.Hi @nahos, are you working on this? Looks like it’s been a while, I’d like to work on it if you’re not.