A Flutter plugin to enable auto start and disable battery optimizations. Also shows custom steps to disable the optimizations in devices like mi, xiaomi, samsung, oppo, huawei, oneplus etc
MIT License
28
stars
29
forks
source link
return type of DisableBatteryOptimization.isBatteryOptimizationDisabled could be tightened to bool instead of bool? #15
Basically the title. Looking at the implementation:
the method always returns a boolean, so the flutter implemenation could be changed to: