3 ms·
> What good prompting the user does if the prompt says: "Would you help to make your beloved app even better?" The prompt doesn't say that though. The prompt t
by Ajedi32 7y ago
> What good prompting the user does if the prompt says: "Would you help to make your beloved app even better?"
The prompt doesn't say that though. The prompt text is controlled by the user's browser, not the website.
Example of a prompt in Chrome: https://developers.google.com/web/updates/images/2015-07-22-interact-with-ble-devices-on-the-web/bluetooth-device-chooser.webm https://developers.google.com/web/updates/images/2015-07-22-...
- fredrik-j 7y agoThanks for the example video! I note that the example skipped one crucial step, to scan for available devices. Scanning and enumerating available devices, and selecting a device, is a step where potentially sensitive information is exposed. Will scanning for and getting a list of all available devices be something that a websites can do through the api? Or will the api delegate scanning to the browser, much like the file selector api, where the browser is only exposes the final user selection, the selected file, rather than letting the webapp have access to the entire file system? I.e in this case a list of all available bluetooth devices?
- Ajedi32 7y agoNo, as you can see in the video the browser lists available devices and the user then selects from that list. The website only ever sees the device the user selects (if any); it can't read the list itself. IIRC there _is_ a separate standard that allows websites to scan for nearby Bluetooth devices but it's via a completely different API with its own separate permissions system.