Get battery status using HTML5 Battery Status API

Get battery status using HTML5 Battery Status API

BY 10 Feb 2016 Web Code Snippet
This code shows how to determine that the battery is low and perform the required action. as the charge-saving actions: use power APi to change screen state, disable ccs and js animation, stopping ajax polls, storing data to webStorage, disable sound and vibration,using AppCache.
Written by