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
Await do not await until the permission was accepted or denied #17
All show methods do not wait until the user did the action to return:
final result = await DisableBatteryOptimization.showDisableAllOptimizationsSettings
print(result); // Prints true even if the user is still seeing the dialog
Expected
It should wait until the dialog is accepted/denied and then return with that value true/false
Hi, thanks for this library.
All show methods do not wait until the user did the action to return:
Expected
It should wait until the dialog is accepted/denied and then return with that value
true/false