Skip to content

Native Add-on not installed message #28

@wisemonkey

Description

@wisemonkey

Addon and native addons are installed correctly.
I can see

➜  native-messaging-hosts pwd
/home/wisemonkey/.mozilla/native-messaging-hosts

➜  native-messaging-hosts ls
firefox-webserial  io.github.kuba2k2.webserial.json

➜  native-messaging-hosts cat io.github.kuba2k2.webserial.json 
{
	"name": "io.github.kuba2k2.webserial",
	"description": "WebSerial for Firefox",
	"path": "/home/wisemonkey/.mozilla/native-messaging-hosts/firefox-webserial",
	"type": "stdio",
	"allowed_extensions": ["webserial@kuba2k2.github.io"]
}

Opening any webserial site says `native add-on not installed`
and debug console shows:
19:31:09.650 / NATIVE -- getNativePort: Connecting to native... [webserial.background.js:1:20764](moz-extension://bdca7b20-f765-4826-87cc-0940a94f90cc/dist/webserial.background.js)
19:31:09.651 / NATIVE -- setNativeParams: 
Object { state: "checking", platform: {…} }
[webserial.background.js:1:20764](moz-extension://bdca7b20-f765-4826-87cc-0940a94f90cc/dist/webserial.background.js)
19:31:09.659 / NATIVE -- onDisconnect: Disconnected: Error: No such native application io.github.kuba2k2.webserial [webserial.background.js:1:20764](moz-extension://bdca7b20-f765-4826-87cc-0940a94f90cc/dist/webserial.background.js)
19:31:09.659 / NATIVE -- setNativeParams: 
Object { state: "not-installed", error: Error, platform: {…} }
[webserial.background.js:1:20764](moz-extension://bdca7b20-f765-4826-87cc-0940a94f90cc/dist/webserial.background.js)

Is it not installed / connected correctly

I can do:

➜  native-messaging-hosts ./firefox-webserial 
0{"data":"Waiting for incoming connections...\n"}^C

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions