fluttercommunity / fluttercommunity/wakelock_plus

Uncaught Web Exception

Open
#38 2 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.