What is causing an “Error connecting to native app” when connecting to a native host application with connectNative() in a Chrome extension?
I am implementing communication between a web page and a Mac application using Chrome's Native Messaging feature. All seems to go well until I make the javascript call to chrome.runtime.connectNative("my_native_host_app_name"), which produces the following error in the console: Error in event handler for runtime.onMessageExternal: Error connecting to native app: com.allinlearning.nmhforbrowserextension Stack trace: Error: Error connecting to native app: com.allinlearning.nmhforbrowserextension at Object.<anonymous> (extensions::runtime:189:11) at Function.target.(anonymous function)