How to detect if the App is closed in Web Browser

I need to detect if the app is closed in Web Browser to make a update in Firestore to sign the user is off/out to others users.

1 reply