Chrome 121 enable-web-bluetooth-new-permissions-backend flag and BluetoothDevice.watchAdvertisements() disappeared

195 views Asked by At

I have a web app using the Web Bluetooth API. Today it suddenly stops working, so I checked chrome://flags and found out #enable-web-bluetooth-new-permissions-backend no longer exists. I also checked MDN docs and found that BluetoothDevice.watchAdvertisements() (The API I am using) is being red underlined. What's happened to the API? Is there any new API to do the same thing?

1

There are 1 answers

3
Reilly Grant On

In an effort to keep us from having experimental code hanging around forever the ability to set a flag in chrome://flags usually has an expiration date. There's an "unexpire flags" flag you can turn on to keep it for an extra version.

We get a notification when a flag is about to expire but since the team is busy (the reason we haven't gotten to making this feature enabled by default) sometimes it gets missed.