Cordova Power Saver plugin is a small plugin that allows applications to check if device is in power saving mode
PowerSaver.isPowerSaverEnabled()
.then((isActive) => {
console.log('Power saving mode is active', isActive);
});
- Android (5+)
- iOS (9+)
- Adding the observable method that will allow subscribing to changes in power saver mode
PowerSaver.powerSaverChange()
.subscribe((isActive) => {
console.log('Power saving mode has changed to', isActive);
});
This plugin is still being tested so please don't use it just yet