Battery status web app Simple test Mocking navigator.battery property Mocking navigator.getBattery method Battery status updates No battery API See also Battery status web appIn source repo bahmutov/demo-battery-api there is a web application forked from pazguille/demo-battery-api that uses navigator browser API to show the current battery status. You can try the demo of the application at http://