WebBluetoothCG / web-bluetooth

Bluetooth support for the Web.
http://www.w3.org/community/web-bluetooth/
Other
1.37k stars 185 forks source link

About navigator.bluetooth.requestLEScan() function #584

Open nex314 opened 2 years ago

nex314 commented 2 years ago

How to implement navigator.bluetooth.requestLEScan() function on Windows Chrome? The web site has mentions that which can work on Windows 10, but I have no response when I use that function. https://github.com/WebBluetoothCG/web-bluetooth/blob/main/implementation-status.md

thanks

reillyeon commented 2 years ago

Can you clarify what you mean by "no response"? Check the DevTools console for errors when calling that function. Because it is still experimental you need to enable chrome://flags/#enable-experimental-web-platform-features.

nex314 commented 2 years ago

I enable chrome://flags/#enable-experimental-web-platform-features already. When the web site running on Android Chrome, which will shown permission dialog before start scan, but there is no permission dialog shown on Windows Chrome and DevTools console has no any error message.

chengweih001 commented 2 years ago

The issue could be reproduced. Please refer to https://bugs.chromium.org/p/chromium/issues/detail?id=1323134.