So I’m planning an on-demand platform app and I need to check is the expert (or driver like in uber) is online in order for customers to see what experts are online.
I have a is online? on the user DB and when the header is loaded it would set the field to “yes”. However, I’m unable to make it go to “No” When the user closes the app page, is there any method/plugin to detect did the user close the web app page and is now not online?