Await do not await until the permission was accepted or denied
Opened this issue · 0 comments
danielgomezrico commented
Hi, thanks for this library.
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