New issue
Advanced search Search tips

Issue 612290 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Web-bluetooth API: Origin is not allowed to access the service.

Reported by danhirsc...@gmail.com, May 16 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Platform: 7978.66.0

Steps to reproduce the problem:
1. Click on Find Sphero
2. Select available BB-8
3. 

What is the expected behavior?
Should connect to Sphero BB-8

What went wrong?
DOMException:
Origin is not allowed to access the service. Remember to add the service to a  filter or to optional services in requestDevice(). However it previously worked every well.

Did this work before? Yes Last time it worked was May 11th.

Chrome version: 50.0.2661.91  Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0
 
 Issue 612289  has been merged into this issue.
Components: -Platform>DevTools Blink>Bluetooth
Status: WontFix (was: Unconfirmed)
Your requestDevice() call at https://github.com/danhklein/Kyubot/blob/1d3e9799fc1a9d9cb139672d4968aa07b06dcff9/src/components/spheroConnectButton.jsx#L113 needs to include the services you're accessing in either a filter or the optionalServices list, as the error message says.

Comment 5 by scheib@chromium.org, May 17 2016

The Mac OSX implementation is incomplete. See:
https://github.com/WebBluetoothCG/web-bluetooth/blob/gh-pages/implementation-status.md#chrome
You will need to test from an Android and ChromeOS device.

Also, you may need 2 services:
22bb746f-2bb0-7554-2d6f-726568705327
22bb746f-2ba0-7554-2d6f-726568705327

Depending on which device you connect to. See:
https://github.com/operasoftware/bb8/blob/gh-pages/main.js#L174-186

Try https://operasoftware.github.io/bb8/

Thanks! Was so strange that it was working before without services in the filter.

Sign in to add a comment