W3C home > Mailing lists > Public > public-web-bluetooth@w3.org > January 2016

Questions for user gestures of |Bluetooth.requestDevice(...)| provided by UA

From: Bruce Sun <brsun@mozilla.com>
Date: Wed, 13 Jan 2016 18:40:03 +0800
Message-ID: <CAKfcOeO6_8ZmV7FgW_bxW2wCbWieb=uT2v7VSET-BvupO3eyuA@mail.gmail.com>
To: public-web-bluetooth@w3.org
Hi,

Well...not exactly questions, more like double confirming the behavior of
how UA interacts with users after |Bluetooth.requestDevice(...)| has been
called.

There are some wordings on the spec mentioning that a user gesture is
required to reduce the frequency of scans some[1][2]; and UA must inform
the user what capabilities the requested services can provide[3]; and a
prompt is required to show the user the human-readable name of each
device[3].

So if I understand it correctly, UA ought to be able to provide at least
two kinds of prompts:
 - One is used to declare the usage of each service in the filter, and to
provide an option at the same time for users to switch Bluetooth on to
perform scan. The timing to show this prompt is right after
|Bluetooth.requestDevice(...)| has been called but before the real scanning
process begins.
 - Another one is used to display all scanned devices after adapting the
filter, and to let users choose one single device for further interaction.
The timing to show this prompt is right after the real scanning process
begins.

Are the above two kinds of prompts exactly the same as what spec expects?
Kindly help to share information if I misunderstand something or miss
something. Any comments are appreciated.

Best regards,
Bruce Sun.

[1] https://webbluetoothcg.github.io/web-bluetooth/#ua-bluetooth-address
[2]
https://github.com/WebBluetoothCG/web-bluetooth/issues/127#issuecomment-119698067
[3]
https://webbluetoothcg.github.io/web-bluetooth/#device-access-is-powerful
[4]
https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-requestdevice
Received on Wednesday, 13 January 2016 13:40:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 13 January 2016 13:40:17 UTC