Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Bluetooth - Auto Connect to paired device

Is there a way to auto connect to a paired device with the web Bluetooth ?

So i can get rid of the annoying pop up device selector from google..

like image 674
Stweet Avatar asked Sep 12 '25 12:09

Stweet


1 Answers

As of this moment, I have implemented navigator.bluetooth.getDevices() behind a flag in Chrome. To use the API, the Experimental Web Platform features flag in chrome://flags needs to be enabled. Please follow Issue 577953: bluetooth: Get permitted devices for updates on getDevices().

For reconnecting to a device, I'm also implementing the watchAdvertisements() API to allow apps to receive an Event when system perceives an advertisement packet from device on which this was called on. Please follow Issue 654897: bluetooth: Implement watchAdvertisements() for updates on this API.

These two are part of a bigger project for implementing persistent permissions for Web Bluetooth to allow sites to reconnect to devices that they already had permission to connect to via the device chooser prompt.

like image 73
Ovidio Ruiz-Henríquez Avatar answered Sep 14 '25 01:09

Ovidio Ruiz-Henríquez