bluetooth_low_energy icon indicating copy to clipboard operation
bluetooth_low_energy copied to clipboard

Error in Windows: Platform channel messages must be sent on the platform thread

Open askandlearn opened this issue 9 months ago • 8 comments

Hello, I found an issue using this package on Windows 10. [√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3593], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.7) [√] Android Studio (version 2021.2) [√] VS Code (version 1.89.1) [√] Connected device (4 available) [√] Network resources

Steps to reproduce:

  1. Run any flutter app which uses the CentralManager

Connecting to VM Service at ws://127.0.0.1:51793/-TN8a0R1R50=/ws flutter: BLE: central manager state changed [ERROR:flutter/shell/common/shell.cc(1015)] The 'dev.flutter.pigeon.bluetooth_low_energy_windows.MyCentralManagerFlutterApi.onDiscovered' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information. flutter: Data Directory: C:\Users\xxxx\OneDrive\Documents

askandlearn avatar May 17 '24 02:05 askandlearn