So far, we haven't handled various application and device events, but most apps need to support these before they are deployed to production. We've already dealt a little with one particular event (the back button event), but there are many more events that your app may need to know.
The documentation for all these events is located at http://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events. We will cover most of the events in detail, but there are additional events that we won't cover and you might want to check out.
There are two plugins that need to be added if you want to respond to the battery
and network information
events:
cordova plugin add org.apache.cordova.battery-status cordova plugin add org.apache.cordova.network-information