Chrome bug on Windows 10 “Turn on Bluetooth to allow pairing”

Posted by Mohammed Mahgoub on Sun, Nov 24 2019 14:31:48

Today while I was playing with the new WebBluetooth API I came across a bug that left me frustrated for a couple of minutes. To start interacting with the WebBluetooth API you would have a code similar to this to run in Chrome (only Chrome andOpera are supported at this moment in time):

navigator.bluetooth.requestDevice({ filters: [{ services: ['battery_service'] }] })
.then(device => {
    console.log(device);
 })
.catch(error => { console.log(error); });
 

Then a pairing pop up will show up where presumably you can pair nearby Bluetooth devices, however, instead of a list of devices you will get a message that says “Turn on Bluetooth to allow pairing” in spite of Bluetooth actually on in Windows 10. Turns out that Microsoft pushed an update broke this feature and it is related to Radio devices privacy settings (which apps are allowed to change your radio devices). Currently, to fix this you will need to close Chrome then go to Windows 10 settings and search for "Radio privacy settings" and toggle the button under "Allow apps to control device radios". Once this is done Chrome will list Bluetooth devices as it should.

 

0 Comments

Add new comment