Progression in capabilities and processing power means we can do much more with our mobile devices including multitasking and background processes. This often means we end up using more battery power to fuel our applications.
In this recipe, we will build an application to display the connection details and the current power capacity of the device battery:
batterystatusby running the following:
phonegap create batterystatus com.myapp.batterystatus batterystatus
cordova platform add ios cordova platform add android