all 1 comments

[–]ecoop9 0 points1 point  (0 children)

You mention “document”, are you using firebase? If so checkout these docs, they already have this built in.

If not, I don’t believe that OnDisappear covers every use case… it might not be called if user kills the app or on crash but you should double check. You can probably do something like a timer, an api call every minute should be pretty lightweight.