Web Bluetooth getAvailability()

Adds getAvailability() To the Bluetooth interface. The method returns a promise that resolves with true if the user agent is running on a system that has a Bluetooth radio and false otherwise. The powered state of the Bluetooth radio does not influence the availability because applications can prompt users to turn on the radio using requestDevice().

This API is useful for developers to know whether they should show UI for Web Bluetooth or not to the user. This is demonstrated in an example in the spec: https://webbluetoothcg.github.io/web-bluetooth/#example-getavailability.


Intent to Implement and Ship: https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/blink-dev/093IZbeZ6RA/nyWAWIOICwAJ




Editor's draft

Status in Chromium


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Last updated on 2019-06-21