tnrgus
tnrgus

Reputation: 365

Native messaging of Chrome extension

I am running an example application that uses native messaging on OS X.

After downloading an example of chrome, I registered an extension and located a native messaging host file at /Library/Google/Chrome/NativeMessagingHosts/com.google.chrome.example.echo.json.

According to the guide, Chrome starts a native messaging host in a separate process. But I cannot look for that process.

Is there a way for chrome to run host process? What do I miss?

Upvotes: 0

Views: 2243

Answers (2)

FuzzyAmi
FuzzyAmi

Reputation: 8157

To run the app, start chrome and go to the following URL: chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/main.html

If you've done everything right, it should start the python script and you should see a window.

if its not working, have a look at chrome's console. you could also enable additional chrome logs - see here: http://www.chromium.org/for-testers/enable-logging

Upvotes: 0

Krishna Srinivas
Krishna Srinivas

Reputation: 1710

The sample app provided by Chrome is a packaged app. Once you install it you have to launch it from your browser. And then do ps ax and look for the sample python-script process.

Upvotes: 1

Related Questions