WebAPI/WebBluetooth: Difference between revisions

Line 9: Line 9:
Firefox OS is the main consumer of WebBluetooth for the moment. Most operating systems already provide a configuration layer for bluetooth, and we do not plan on overriding that. However, Firefox OS will require its own settings and initialization code, so the focus of the API is on that platform for the time being.
Firefox OS is the main consumer of WebBluetooth for the moment. Most operating systems already provide a configuration layer for bluetooth, and we do not plan on overriding that. However, Firefox OS will require its own settings and initialization code, so the focus of the API is on that platform for the time being.


=== Current Status (Until Firefox OS v1.3) ===
=== Current Status ===


Until Firefox OS v1.3 (feature complete target on: 2013/12/9), Bluetooth APIs still haven't been exposed for 3rd party web apps. In other words, only certified apps with Bluetooth permission are allowed to use Bluetooth API for now, and there is no interface like BluetoothSocket for Gaia developers to use Bluetooth as a media to transfer data.
Firefox OS v2.2 (feature landing target on: 2014/11/24) will adopt refined Bluetooth APIs as listed in section [[WebAPI/WebBluetooth#DOM_API|DOM API]]. Detailed documentation and the latest refinement progress can be found in page [[B2G/Bluetooth/WebBluetooth-v2|WebBluetooth-v2]]. In addition, Firefox OS v2.2 will also expose Bluetooth Low Energy (BLE) GATT client APIs to 3rd party web apps. Privileged apps will be able to develop BLE profiles and control customized bluetooth LE devices.


Since the API we have now is too BlueZ-specific, we have already put 'refining Bluetooth API' on the desired feature list of Firefox OS v1.4.
[http://www.w3.org/community/web-bluetooth/ W3C Bluetooth Community Group] is discussing on specification for Bluetooth APIs to allow websites to communicate with devices in a secure and privacy-preserving way. Google has proposed [http://webbluetoothcg.github.io/web-bluetooth/ an intial API] and [https://webbluetoothcg.github.io/web-bluetooth/use-cases.html use cases]. Mozilla also participates in discussion to integrate Firefox OS Bluetooth APIs into the finalized version. See section [[B2G/Bluetooth/WebBluetooth-v2#Google_Bluetooth_APIs|Google Bluetooth APIs]] for more information about Google Bluetooth APIs.


=== DOM API ===
=== DOM API ===
Confirmed users
891

edits