I attempted to post the following request on the snapcraft store to
start the request process, but was not able to because I am a "new" user
(limited to 2 links and one image):

The [chromium](https://snapcraft.io/chromium) web browser has support
for [Web Bluetooth](https://webbluetoothcg.github.io/web-bluetooth/).

This is still considered experimental on Linux and must be enabled in
the Browser setting via [chrome://flags/#enable-experimental-web-
platform-features](chrome://flags/#enable-experimental-web-platform-
features).

Although technically it is experimental, we have found that it works
perfectly well for our web app.
[https://code.pybricks.com/](https://code.pybricks.com/)

The app can detect if a browser supports Web Bluetooth or not. For
example if using Firefox (which doesn't have Web Bluetooth support) or
using Chromium with experimental web features disabled, uses will see
this error message when clicking the Bluetooth button.

![image|690x150](upload://1kJRGfmFGeh950fRaNBJyit6HuY.png)

If Web Bluetooth is enabled, users will see this dialog box instead.

![image|473x451](upload://92EaYl536hIj5Sdwp3u8Eieo4wV.png)

However, we recently discovered that [Chromium installed via snap does
neither](https://bugs.launchpad.net/ubuntu/+source/chromium-
browser/+bug/1887201). Clicking the Bluetooth button simply does
nothing. This can be fixed by manually connecting the Chromium snap to
the [BlueZ](https://snapcraft.io/bluez) interface.

It does not seem reasonable to expect all web developers using Web
Bluetooth to add a special case to their web app to detect Chromium
running in a snap without bluez connected (and this is very probably not
even technically possible at this point in time) and to communicate to
their users that there are extra steps needed to manually configure
their web browser via a terminal window.

Therefore we are requesting that the chromium snap be allowed to
automatically connect to the bluez interface.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1887201

Title:
  [snap] web bluetooth does not work

Status in chromium-browser package in Ubuntu:
  Fix Committed

Bug description:
  Using the site https://code.pybricks.com, clicking the bluetooth icon
  should start scanning for devices (a dialog box should pop up showing
  discovered devices). It worked in the debian package of chromium on
  Ubuntu 20.04 but today apt installed the snap version instead and
  Bluetooth is no longer working. Clicking the bluetooth button on this
  site does nothing - no errors are reported in the developer console in
  chromium.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1887201/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to