nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.37k stars 3.89k forks source link

WebUSB API issue #5418

Closed drom closed 7 years ago

drom commented 8 years ago

I am trying to use WebUSB API and getting the error.

code: https://github.com/drom/jsdr/blob/master/experiments/WebUSB/src/app.js

My platform:

Error:

drom@linux-xqxs:~/work/github/drom/jsdr/experiments/WebUSB> ./cache/web-usb-demo-v0.1.0-linux-x64/web-usb-demo --enable-experimental-web-platform-features
[21540:21540:1030/152608:ERROR:interface_registry.cc(99)] Failed to locate a binder for interface: device::usb::DeviceManager
[21540:21540:1030/152608:INFO:CONSOLE(0)] "Uncaught (in promise) NotFoundError: USB service unavailable.", source: chrome-extension://bpjaafjkaapkjdomphdmoljjgcdjbagn/index.html (0)
rogerwang commented 8 years ago

Does Chrome 54 working in the same system?

drom commented 8 years ago

Yes, it does works in chromium 54.0.2840.71 with flag: --enable-experimental-web-platform-features on the same machine.

rogerwang commented 7 years ago

Upstream disabled this feature for Chrome Apps: https://bugs.chromium.org/p/chromium/issues/detail?id=610880

We'll enable it because we use a different security model.

rogerwang commented 7 years ago

This is fixed in git and will be available in the next nightly build.