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).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature