fluttercommunity / fluttercommunity/wakelock_plus
Uncaught Web Exception
Open
- Dominant language
- Dart
- Stars
- 109
- Forks
- 97
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 2
Description
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 toggle({required bool enable}) async {
// Make sure the JS library is loaded before calling it.
await _jsLoaded;
wakelock_plus_web.toggle(enable);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.