battery_optimization_helper 0.1.2 copy "battery_optimization_helper: ^0.1.2" to clipboard
battery_optimization_helper: ^0.1.2 copied to clipboard

PlatformAndroid

A Flutter plugin to detect and request disabling Android battery optimization, with best‑effort OEM auto‑start shortcuts.

0.0.2 #

  • Initial release.
  • Added support for checking and requesting disable of Android battery optimization.

0.0.1 #

  • Initial release.
  • Added support for checking and requesting disable of Android battery optimization.

0.0.2 #

  • Update readme file.

0.0.3 #

  • Format dart files

0.0.4 #

  • Added background autostart

0.0.5 #

  • Update readme file.

0.1.0 #

  • Add Android version guards to avoid crashes on API < 23.
  • Improve activity launching with safe fallbacks.
  • Expand OEM auto-start/background settings coverage (Samsung, Huawei, OnePlus, Realme, Asus, Meizu, Nokia, Motorola, etc.).
  • Update README with clear usage, 16 KB page size guidance, and tips.
  • Refactor Dart API to use platform interface; add ensureOptimizationDisabled() convenience method and safer wrappers that handle exceptions.
  • Add requestDisableBatteryOptimizationWithResult to report status after user returns from the system dialog.
  • Bump Kotlin Gradle Plugin to 2.1.0 in example and 2.1.0 in plugin build to resolve upcoming support warnings.

0.1.1 #

  • Improve README: installing via CLI, rationale example snippet, versions/tooling, and pub score tips.
  • Enhance example app with rationale dialog and clearer actions.
  • Update tests to reflect new API and stabilize Android unit test.
0
likes
155
points
462
downloads

Publisher

verified publishertechlinkmyanmar.com

Weekly Downloads

A Flutter plugin to detect and request disabling Android battery optimization, with best‑effort OEM auto‑start shortcuts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on battery_optimization_helper

Packages that implement battery_optimization_helper