W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > April 2017

[web-bluetooth] requestDevice from extension

From: McMagnus via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Apr 2017 16:34:33 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issues.opened-220701210-1491842072-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 10 April 2017 16:34:40 UTC