I'm trying to use the BatteryStatus Corel API and I'm not getting it, neither in the Intel XDK emulator nor in the debug on my Android, nor when I make a .APK. It just does not happen when I run.
Basically, using this code found in link :
window.addEventListener("batterystatus", onBatteryStatus, false);
function onBatteryStatus(info) {
// Handle the online event
console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
}