title: How to fix 'Native host has exited'
body: <p>I'm trying to enable Google Chrome Native messaging between an extension and an Electron app on MacOS. </p>
  
  <p>After having setup all mentioned in the doc (manifest and permission for enabling native messaging within an extension), when i try to open a connection between the app and extension i receive "Native host has exited".</p>
  
  <p>This is the code:</p>
  
  <pre><code>chrome.runtime.sendNativeMessage('org.alessandro.app',
      { text: "Hello" },
      function(response) {
        console.log("Received " + response);
    });
  </code></pre>
  
  <p>I'm not sure, but also disabling everything host side, i receive the same error. Maybe it happens before reaching the host but i'm not able to figure it out!</p>