{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/10764","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/10764/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/10764/comments","events_url":"https://api.github.com/repos/electron/electron/issues/10764/events","html_url":"https://github.com/electron/electron/issues/10764","id":264836547,"number":10764,"title":"WebBluetooth: Implement device selection events at renderer","user":{"login":"daumling","id":15716793,"avatar_url":"https://avatars2.githubusercontent.com/u/15716793?v=4","gravatar_id":"","url":"https://api.github.com/users/daumling","html_url":"https://github.com/daumling","followers_url":"https://api.github.com/users/daumling/followers","following_url":"https://api.github.com/users/daumling/following{/other_user}","gists_url":"https://api.github.com/users/daumling/gists{/gist_id}","starred_url":"https://api.github.com/users/daumling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daumling/subscriptions","organizations_url":"https://api.github.com/users/daumling/orgs","repos_url":"https://api.github.com/users/daumling/repos","events_url":"https://api.github.com/users/daumling/events{/privacy}","received_events_url":"https://api.github.com/users/daumling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-12T07:13:52Z","updated_at":"2017-10-12T08:15:58Z","closed_at":"2017-10-12T08:15:58Z","author_association":"NONE","body":"Currently, the _bluetooth-select-device_ event is within the main process. If the user wants to mimick standard WebBluetooth behavior, the renderer process needs to display a dialog.\r\n\r\nAlso, receiving a long list of devices (with many duplicates!) is not user-friendly. The user needs to see devices as they are found. Often, a devices is found only after turning it off and on again.\r\n\r\nFollowing suggestion: Implement _bluetooth-select-device_ on the renderer side, with a single argument, the callback.\r\n\r\nImplement a _bluetooth-device-found_ event; its argument should be a standard BluetoothDevice instance with an \"id\" property instead of a \"deviceId\" property.\r\n\r\nThe user could display an empty dialog on the former event and remember the callback. On the latter events, the user would fill the dialog.\r\n\r\nThe dialog could event become part of the standard Electron package. See, for example, the file DeviceChooserUI.js in the web-bluetooth-polyfill package for an implementation.\r\n\r\n* Electron version: 1.7.8\r\n* Operating system: Mac OS 10.12.6\r\n"}}
{"actor":{"display_login":"MarshallOfSound"}}