March 29th, 2016
The Device APIs Working Group has published a Proposed Recommendation of Battery Status API. The Battery Status API specification defines a means for web developers to programmatically determine the battery status of the hosting device. Without knowing the battery status of a device, a web developer must design the web application with an assumption of sufficient battery level for the task at hand. This means the battery of a device may exhaust faster than desired because web developers are unable to make decisions based on the battery status. This specification defines an API that provides information about the battery status of the hosting device. Comments are welcome through 29 April.