ignore_battery_optimization 0.0.1
ignore_battery_optimization: ^0.0.1 copied to clipboard

用来开启安卓的后台优化

ignore_battery_optimization #

A new Flutter project.

Getting Started #

用来安卓忽略电池优化的插件

flutter_ignore_battery_optimization #

1.IgnoreBatteryOptimization.isIgnoringBatteryOptimizations("app packageName"),判断是否已加入 #

2.IgnoreBatteryOptimization.openIgnoringBatteryOptimizations("app packageName"),去加入 #

注意,安卓版本必须>=23 #