Get battery status using HTML5 Battery Status API
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.