Error requesting device via Electron Web Bluetooth API

I’m trying to develop an application with the Electron framework that communicates with Bluetooth Low Energy (BLE) devices. I successfully established a working “website” with the Web Bluetooth API.

However, when I start navigator.bluetooth.requestDevice(), I get the error message User cancelled the requestDevice() chooser. due to the missing device chooser in Chromium.

I’ve looked for solutions to this problem and found several topics, but no examples. Does anyone have experience with this issue and can provide me with a hint?

Fenced code block

One possible solution to this issue is to use a third-party library like @abandonware/noble or noble-uwp to directly communicate with BLE devices instead of relying on the Web Bluetooth API. These libraries provide a more low-level approach to BLE communication and may not require a device chooser.