Battery Status API
Battery Status API

charging true
chargingTime 0 (0h:0m:0s)
dischargingTime Infinity
battery level 1

promise status success
number of updates 1
Edit in JS Bin