[web-bluetooth] requestDevice from extension

McMagnus has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== requestDevice from extension ==
I'm trying to write a chrome extension that should connect to a BLE device and use its services. However, when the web page posts the message to the extension, the user action (button click) is lost and when the extension calls requestDevice it fails because it doesn't think the call was initiated by a user action.

How is an extension supposed to connect to BLE devices?

I guess it might be possible to add a "onDeviceConnected" listener to the extension (when it's implemented), but will that work?

Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/362 using your GitHub account

Received on Monday, 10 April 2017 16:34:39 UTC