question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] - User last active does not automatically update

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chrismclarkecommented, Feb 22, 2021

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 the handleUserUpdates), so probably would be good enough to just add a note to update it in the future if it becomes enabled again.

1reaction
danitrodcommented, Feb 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found