Overview
Opens the system battery optimization settings list where users can manually toggle battery optimization for specific apps. This is a safer alternative torequestBatteryOptimizationExemption() as it doesn’t require special permissions.
Returns
Promise resolving to
true if settings were successfully opened, false otherwise.Platform Behavior
Advantages Over Direct Request
When to Use
✅ Use this method when:- You want to avoid Google Play policy concerns
- Your app doesn’t strictly require background execution
- You prefer a more conservative approach
- You want to let users control the setting manually
requestBatteryOptimizationExemption() when:
- Your app genuinely requires background execution
- You meet Google Play’s acceptable use cases
- You want a simpler user experience
Example Usage
Basic Usage
With User Guidance
Settings Screen
Onboarding Flow
Check and Guide
With Fallback
User Instructions by Manufacturer
Different manufacturers have slightly different UIs:Stock Android / Google Pixel
- Find your app in the list
- Tap on it
- Select “Don’t optimize”
Samsung
- Find your app
- Tap it
- Select “Don’t optimize”
Xiaomi (MIUI)
- Consider using
openOEMSettings()for better guidance
Related APIs
isIgnoringBatteryOptimizations()- Check statusrequestBatteryOptimizationExemption()- Direct request (alternative)openOEMSettings()- OEM-specific settings

