battery_optimization 0.1.0 copy "battery_optimization: ^0.1.0" to clipboard
battery_optimization: ^0.1.0 copied to clipboard

A simple plugin to check if the app is ignoring battery optimizations.

battery_optimization #

A simple plugin to check if the app is ignoring battery optimizations (Android Only)

Getting Started #

Check if app is ignoring battery optimization #

BatteryOptimization.isIgnoringBatteryOptimizations().then((onValue) {
    setState(() {
        if (onValue) {
            // Igonring Battery Optimization
        } else {
            // App is under battery optimization
        }
    });
});

Take user to battery optimization settings #

this opens the battery optimization settings. Apps can be placed on the whitelist through the settings UI

BatteryOptimization.openBatteryOptimizationSettings();
9
likes
30
points
17
downloads

Publisher

verified publisherdsi.dev

Weekly Downloads

A simple plugin to check if the app is ignoring battery optimizations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on battery_optimization