ignore_battery_optimization

A new Flutter project.

Getting Started

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

flutter_ignore_battery_optimization

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

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

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

Libraries

ignore_battery_optimization