-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webContents: add event to select bluetooth device #5781
Conversation
Should this be made an event of |
@@ -167,6 +167,8 @@ | |||
'atom/browser/atom_security_state_model_client.h', | |||
'atom/browser/atom_speech_recognition_manager_delegate.cc', | |||
'atom/browser/atom_speech_recognition_manager_delegate.h', | |||
'atom/browser/bluetooth_chooser.cc', | |||
'atom/browser/bluetooth_chooser.h', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to move this to atom/browser/lib
since its major purpose is to provide JavaScript API.
da9cd31
to
7434838
Compare
Have made the changes, thanks! |
👍 |
hi, is this available in the release version of 1.2.1? I am trying to test this but I am not seeing my callback run:
|
@barchard the callback wont fire if the device list is empty, it will cancel internally after some retries. Whats the output of the app with |
@deepak1556 I am trying to discover all devices around me. Not trying (yet) to pair or connect with one. Log is below. Thanks
|
the log states the request to be cancelled, does chrome show up a list of available devices ? i was able to list and connect to a device on linux. Thanks! |
@deepak1556 Chrome gives me a little pop up but doesn't show me any devices. What device IDs are you filtering on? I am using:
|
Yup if there arent any devices then the event wont fire. I tested with the following code
|
@deepak1556 yea, i'm not getting any devices listed on OS X 10.11.5 (15F34). This seems highly unlikely that there aren't any devices around me that respond to the generic access profile?! |
I am not sure. I suggest reporting to the chromium issues tracker since you don't see the expected output on chrome. Thanks! |
@barchard It is probably Chromium has problems recognizing the device on your machine, I can successfully list the devices using web bluetooth API on my machine (OS X 10.11.5). |
Fixes #5565
Depends on
electron-archive/brightray#225