Overview
Checks if the device is in Power Save (Battery Saver) mode. This is a system-wide setting that affects ALL apps, regardless of battery optimization exemptions.Returns
Promise resolving to
true if power save mode is enabled, false otherwise.Platform Behavior
What is Power Save Mode?
Power Save (Battery Saver) mode is a user-activated setting to extend battery life. When active, the system may: System Restrictions:- 🔴 Throttle CPU performance
- 🔴 Reduce screen brightness
- 🔴 Limit or disable background data
- 🔴 Reduce location update frequency
- 🔴 Defer background jobs
- 🔴 Disable vibration
- 🔴 Limit sync adapters
- 🔴 Disable certain visual effects
Even if your app is exempt from battery optimizations using
isIgnoringBatteryOptimizations(), it will STILL be affected by Power Save mode when the user enables it.Use Cases
✅ When to check:- Before starting intensive operations
- To inform users why features are limited
- To adjust app behavior (reduce sync frequency, etc.)
- For debugging performance issues
Example Usage
Basic Check
Alert User About Limitations
Adaptive Sync Frequency
Status Banner
Comprehensive Status Check
Settings Screen
Disable Auto-Sync in Power Save
Android API Levels
Power Save mode was introduced in Android 5.0 (API 21):- API < 21: Always returns
false - API ≥ 21: Returns actual system state
Battery Optimization vs Power Save Mode
Understanding the difference:Related APIs
openPowerSaveModeSettings()- Open Battery Saver settingsisIgnoringBatteryOptimizations()- Check battery optimization (different concept)isDeviceIdleMode()- Check Doze mode status

