For web build (in debug) I encountered the following uncaught exception:
NotAllowedError, Failed to execute 'request' on 'WakeLock': The requesting page is not visible
In the stack, this code gets highlighted:
@override
Future<void> toggle({required bool enable}) async {
// Make sure the JS library is loaded before calling it.
await _jsLoaded;
wakelock_plus_web.toggle(enable);
}
For web build (in debug) I encountered the following uncaught exception:
NotAllowedError, Failed to execute 'request' on 'WakeLock': The requesting page is not visible
In the stack, this code gets highlighted: