I have a Xamarin Form Mobile app for submitting a string data (string userPresent = "online") to Firebase Database whenever user is online/open the app.
The string data will be deleted from the database after user click exit or close the app.
The problem is when user close the internet before closing the app, the string data won't be deleted from the database after they leave.
So is there any solution for this or can Firebase cloud function connect with my app, detect online user, and execute functions when the user lost their connection/go offline?