Function like
window.addEventListener("batterystatus", onBatteryStatus, false);
function onBatteryStatus(info)
{
// Handle the online event
console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
}
return battery level and status when event is fired. In normal case, how can I get status of battery run time without writing plugin.
Also if is there any API or other related/alternate solution, please mention.