I've used cordova to build a mobile app that sits entirely on the server side. This results in bad experience when the user is offline and interacts with the app. I'd like to detect when the app is about to call the server and alert the user that they are offline.I've used cordova to build a mobile app that si