wakelock_plus
wakelock_plus copied to clipboard
PlatformException in web realease builds
Error:
PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.wakelock_plus_platform_interface.WakelockPlusApi.isEnabled"., null, null)`
Code:
FutureBuilder(
future: WakelockPlus.enabled,
builder: (context, snapshot) {
Description: The error only occur in release not dev environment.
Environment:
wakelock_plus: 1.2.5
wakelock_plus_platform_interface: 1.2.1
Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 54e66469a9 (3 weeks ago) • 2024-04-17 13:08:03 -0700
Engine • revision c4cd48e186
Tools • Dart 3.3.4