You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works fine on android, but on iOS both Wakelock.disable() and Wakelock.toggle(enable: false) are called without any error, but screen stays on forever.
No error or exception thrown, The code was called, but nothing happened..
As soon as I let the app the screen dimmed as expected.
Tested on real device, iPhone 11, iOS 15.4.1
Super simple code: (Tried with and without awaiting, no change)
i am having the same problem. On Android, wakelock.enable() works flawlessly. But it doesn't work in apple even if I set wakelock.disable(). It is observed that the await wakelock.enabled value turns false.
Works fine on android, but on iOS both Wakelock.disable() and Wakelock.toggle(enable: false) are called without any error, but screen stays on forever.
No error or exception thrown, The code was called, but nothing happened..
As soon as I let the app the screen dimmed as expected.
Tested on real device, iPhone 11, iOS 15.4.1
Super simple code: (Tried with and without awaiting, no change)
ElevatedButton( onPressed: () async { try { if (await Wakelock.enabled) { // await Wakelock.enable(); await Wakelock.toggle(enable: false); } else { // await Wakelock.disable(); await Wakelock.toggle(enable: true); } } catch (error) { print(error); } },
The text was updated successfully, but these errors were encountered: