Is there is a way to know if a user is currently in the app and mark it as connection is alive and when he quits the app to disconnect the connection with the server?
Is there is a way to know if a user is currently in the app and mark it as connection is alive and when he quits the app to disconnect the connection with the server?
Just found the solution
http://cordova.apache.org/docs/en/2.5.0/cordova_events_events.md.html