Connection status with server


#1

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?


#2

Just found the solution

http://cordova.apache.org/docs/en/2.5.0/cordova_events_events.md.html