Skip to content
Aric edited this page Jul 18, 2014 · 1 revision

Cordova does provide a battery plugin, which is included in DOMLauncher. This small plugin simply returns, upon demand, the current battery level which the Cordova plugin does not do. In the future it will include battery plug state.

@return - Int, 0-100
window.batterylevel.current({success:gotCurrent});

Clone this wiki locally