urish / web-bluetooth-polyfill

Windows 10 Web Bluetooth Polyfill
76 stars 15 forks source link

Disconnected! Specified native messaging host not found. #45

Closed johnmastri closed 6 years ago

johnmastri commented 6 years ago

Followed the instructions, the console reads that the polyfill is loaded. When I check out the background page it says:

Disconnected! Specified native messaging host not found.

Uncaught (in promise) Error: Attempting to use a disconnected port object
    at PortImpl.postMessage (extensions::messaging:102)
    at Port.publicClassPrototype.(anonymous function) [as postMessage] (extensions::utils:138:26)
    at Promise (background.js:18)
    at new Promise (<anonymous>)
    at nativeRequest (background.js:9)
    at startScanning (background.js:108)
    at requestDevice (background.js:163)
    at port.onMessage.addListener (background.js:349)
    at EventImpl.dispatchToListener (extensions::event_bindings:403)
    at Event.publicClassPrototype.(anonymous function) [as dispatchToListener] (extensions::utils:138:26)
urish commented 6 years ago

Please check the suggestions in this page regarding the "Specified native messaging host not found" error troubleshooting

jurgentreep commented 6 years ago

For me it was caused by unpacking the BLEServer in the wrong directory. After that it connected with the server just fine. Sadly still doesn't show any devices though :(

smartyw commented 6 years ago

I have the same problem. I have unpacked in the right folder and added the unpacked extension correctly afaik. BLEServer starts OK if run manually.

urish commented 6 years ago

The polyfill is now deprecated - please use Chrome Canary with native Web Bluetooth instead.