New issue
Advanced search Search tips

Issue 621047 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature

Blocking:
issue 490399



Sign in to add a comment

bluetooth: Improve "DOMException: Bluetooth adapter not available." for Android

Project Member Reported by fbeaufort@chromium.org, Jun 17 2016

Issue description

It is unclear to web developers playing with Web Bluetooth why "DOMException: Bluetooth adapter not available." is returned when calling navigator.bluetooth.requestDevice fails on Android.

Reasons are numerous:
- SDK version is too low
- Lacking Bluetooth permissions
- No Low Energy support
- Default adapter not found

It would be nice to help them understanding the root issue. I'm not sure how to provide this information so I'm just going to spread some ideas:

- Add a JS Console Info message containing the "real" reason.

- Update DOMException Error message to "Bluetooth adapter not available. See http://goo.gl/1234". Help page would contain all reasons why a bluetooth adapter would not be available.

- Return a specific DOMException Error message for most popular errors. This makes me think we might want to add some UMA to detect those.
 

Comment 1 by scheib@chromium.org, Oct 17 2016

Labels: Type-Feature

Comment 2 by scheib@chromium.org, Apr 20 2017

Labels: Pri-3
Issues not modified in last 50 days aren't on track to ship in next release.
Project Member

Comment 3 by sheriffbot@chromium.org, Apr 23 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by ortuno@chromium.org, Apr 23 2018

Status: Available (was: Untriaged)

Sign in to add a comment