title: Communication between rails application and chrome app
body: <p>Currently working on a rails application , i want to send and receive data to this chrome application <a href="https://github.com/GoogleChrome/chrome-nfc" rel="nofollow noreferrer">https://github.com/GoogleChrome/chrome-nfc</a>.</p>
  
  <p>I added  <code>chrome.runtime.sendMessage()</code> function inside app.js file to send a simple "hello world" to my browser and  </p>
  
  <pre><code>chrome.runtime.onMessage.addListener(function(response,sender,sendResponse){alert(response);});
  </code></pre>
  
  <p>to show it but I get nothing.
  Is it the right way to communicate between them ? </p>