Battery status
Limited availability
The navigator.getBattery()
API obtains information about the device's battery, including charge level and status. Also known as the Battery API.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 38 Released on 2014-10-07
- Chrome Android 38 Released on 2014-10-08
- Edge 79 Released on 2020-01-15
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
- Battery Status API, from Devices and Sensors Working Group (W3C).