The Polyfill enables Web Bluetooth in Chrome on Windows 10.
Native Web Bluetooth support is now available on Chrome for Windows.
This polyfill is no longer required and is now deprecated.
git clone https://github.com/urish/web-bluetooth-polyfill
extension
folder inside the cloned repomfjncijdfecdpkfldkechgoadojddehp
C:\Program Files (x86)\Web Bluetooth Polyfill
C:\Program Files (x86)\Web Bluetooth Polyfill\manifest.json
and change the extension id in the allowed_origins
section to match the extension ID you found in step 6C:\Program Files (x86)\Web Bluetooth Polyfill\register.cmd
to register the Native Messaging serverThat's it! Enjoy Web Bluetooth on Windows :-)
winver
program to verify that you have Windows 10 Creators Update. It should display: "Version 1703 (OS Build 15063.413)" or higher.C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe
manually. If an error message containing something like "VCRUNTIME140.dll is missing"
appears, install Visual C++ Redistributable for Visual Studio 2015 (x86). Then launch C:\Program Files (x86)\Web Bluetooth Polyfill\BLEServer.exe
one more time. If a black window containing {"_type":"Start"}
appears, then the BLEServer is working correctly. Although since Windows 10 build 1709 it can still be blocked from running by Windows Defender SmartScreen so Chrome won't be able to start it by itself. You may disable SmartScreen for applications and programs in Windows Defender settings. It's also worth making sure that Web Bluetooth Polyfill
folder and files inside have window's users permissions for read, write and execution ( right click -> properties -> security ).navigator.bluetooth
object to some value.TL;DR - Should work out of the box with most Web Bluetooth apps.
Most of the functionality is already there, but there might be slight differences between the current implementation and the spec. Device Chooser UI is still missing, so the first matching device is picked up automatically. Check out the list of issues to see what is currently still missing. Pull Requests are very welcome!
List of API methods / events and their implementation status:
If you want to run tests, during local development, you will need node.js and yarn. Then, run the following commands:
yarn
yarn test
You can also run the tests in watch mode, which will only run tests related to files changed since the last commit:
yarn run test:watch