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.
Status in Chromium
In development (tracking bug)
Consensus & Standardization
Last updated on 2019-06-21