FLUTTER ECOSYSTEM

disable_battery_optimization

Flutter plugin to check and disable battery optimizations. Also shows custom steps to disable the optimizations in devices like mi, xiaomi, samsung, oppo, huawei, oneplus etc

Latest version
1.1.2
30-day downloads
12.3K
Likes
129
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter plugin that checks and disables battery optimizations on Android devices, particularly useful for apps requiring background execution. It provides tailored instructions for popular brands like Xiaomi, Samsung, Oppo, Huawei, and OnePlus, guiding users through manual steps to ensure uninterrupted app performance. The plugin enhances reliability for services such as location tracking, push notifications, and background sync by preventing the OS from restricting app activity.

Use cases
  • Background task execution
  • Location tracking in the background
  • Push notification reliability
  • Long-running data sync
  • App performance optimization
  • Battery life management
Key features
  • Device-specific optimization guides
  • Automatic battery optimization check
  • Support for major Android brands
  • Simple integration with Flutter
  • Clear user instructions
  • Cross-device compatibility
Suitable for
  • Apps needing persistent background processes
  • Developers targeting Android OEMs
  • Services requiring reliable foreground execution
  • Mobile apps with real-time updates
  • Enterprise or utility applications
Considerations
  • Requires Android platform only
  • User interaction needed for some steps
  • Limited to Android device manufacturers listed
  • May require permission requests
  • Not applicable to iOS devices
Supported platformsAndroid

Install package

flutter pub add disable_battery_optimization

Categories

Source repository

Related projects