battery_optimization_helper
A Flutter plugin to detect and request disabling Android battery optimization, with best‑effort OEM auto‑start shortcuts.
What this package is like to depend on
Last release 6 months ago
07 Feb 2026
Ships on a steady schedule
a new release about every 5 months
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
10 releases · first in 2025
5 releases in the last 12 months
see the full history below
Release timeline
10 releases · Mar 2025 to Feb 2026
2026
Releases
latest 10-
0.2.007 Feb 2026Release notes
Open source →- Add typed optimization outcomes via
ensureOptimizationDisabledDetailed()with explicit statuses (alreadyDisabled,disabledAfterPrompt,settingsOpened,unsupported,failed). - Add diagnostics API:
getBatteryRestrictionSnapshot()(SDK, manufacturer, optimization state, power saver state, and OEM settings capability). - Update Android implementation to provide diagnostics and OEM capability checks.
- Expand tests and update example app to demonstrate the new APIs.
- Bump example Android NDK to
28.2.13676358to match currentintegration_testrequirements. - Replace
com.example.*Android package/application identifiers with project-specific namespaces. - Align SDK constraints with current dependencies (
Dart >=3.8,Flutter >=3.32). - Add GitHub Actions CI workflow to enforce analyze/test/build and
publish --dry-run.
- Add typed optimization outcomes via
-
0.1.315 Sep 2025Release notes
Open source →- 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.1.215 Sep 2025Release notes
Open source →- 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.1.115 Sep 2025Release notes
Open source →- 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.1.015 Sep 2025Release notes
Open source →- 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
requestDisableBatteryOptimizationWithResultto 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.0.529 Mar 2025 -
0.0.429 Mar 2025 -
0.0.329 Mar 2025 -
0.0.229 Mar 2025 -
0.0.129 Mar 2025Release notes
Open source →- Initial release.
- Added support for checking and requesting disable of Android battery optimization.