Skip to content Skip to sidebar Skip to footer

Chrome Native Messaging -- Why Am I Receiving A "specified Native Messaging Host Not Found" Error?

According to the Chrome Native Messaging docs a successful call to connectNative() returns a port, with which you can post messages to a native app (a Mac app). In my case nativeCo

Solution 1:

For Google Chrome, the system-wide directory for the manifest file is:

~/Library/ApplicationSupport/Google/Chrome/NativeMessagingHosts/

The user-specific install path is at:

~/Library/ApplicationSupport/Chromium/NativeMessagingHosts/

(the currently documented path for Mac is incorrect (patch). The paths in install.sh (from the example in the documentation) are correct though).

Solution 2:

Just want to mention that if you are using a different Chrome release channel such as Canary, which is common during development, you will have to adjust the path accordingly.

~/Library/ApplicationSupport/Google/ChromeCanary/NativeMessagingHosts/

Post a Comment for "Chrome Native Messaging -- Why Am I Receiving A "specified Native Messaging Host Not Found" Error?"