-
Notifications
You must be signed in to change notification settings - Fork 128
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
How to get not paired devices list? #203
Comments
This is intentionally impossible. |
however, is it possible to add an interface to tell there is device not paired?
|
Unfortunately letting the site know that there are unpaired devices would still leak too much information without user consent. My recommendation is that the site can still automatically use the paired device but give the user the option to select a different device before taking any action the user might want to select a different device for. This is generally a good idea anyways, the site shouldn't make any irreversible actions without asking the user first. The demo site https://sowbug.github.io/weblight is built this way. It will show the current status of any paired devices on load but also provides a button for the user to select a new device. |
I used
let devices = await navigator.usb.getDevices();
to get already paired devices.
But please tell me without using "requestDevice()" how to get not paired devices list.
The text was updated successfully, but these errors were encountered: