title: Listeners not working for Chrome Rich Notification API ManifestV2- Chrome Extension
body: <p>I'm unable to enter into any of the listener functions for notifications API with manifest V2. I'm able to execute the callback function after Notification is displayed. Also I can see that the <code>chrome.notifications.onClicked.addListener</code> is present while using in debugging mode.</p>
  <p>Here's my manifest.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;Learning&quot;,
    &quot;manifest_version&quot;: 2,
    &quot;version&quot;: &quot;1.3&quot;,
    &quot;description&quot;: &quot;Notification Popup&quot;,
    &quot;background&quot;: {
      &quot;scripts&quot;: [&quot;script.js&quot;],
      &quot;persistent&quot; : false
    },
    &quot;permissions&quot;: [
      &quot;notifications&quot;
    ],
    &quot;content_security_policy&quot;: &quot;script-src 'self' 'unsafe-eval' https://ajax.googleapis.com/; object-src 'self'&quot;
  }
  </code></pre>
  <p><strong>script.js</strong></p>
  <pre><code>var options = {
      type: &quot;basic&quot;,
      title: &quot;Someone just replied to your mail&quot;,
      message: &quot;You have been hired in our company&quot;,
      iconUrl: &quot;stackIcon.PNG&quot;
  }
  chrome.notifications.create(options,function() {
      console.log('Notification Callback');
  });
  
  chrome.notifications.onClicked.addListener(function() { 
      console.log('notification Clicked');
  
  });
  chrome.notifications.onClosed.addListener(function() {
      console.log('notification Closed');
  });
  chrome.notifications.onButtonClicked.addListener(function() {
      console.log('notification Button Clicked');
  });
  
  chrome.runtime.onInstalled.addListener(function() {
      console.log('runtime onInstalled');
  })
  </code></pre>
  <p>console.log results</p>
  <pre><code>Notification Callback
  </code></pre>