title: How to use chrome.alarms for Google Chrome extension
body: <p><strong>manifest.json</strong></p>
  <pre><code>{
      &quot;manifest_version&quot;: 2,
      &quot;name&quot;: &quot;App name&quot;,
      &quot;description&quot;: &quot;Description goes here&quot;,
      &quot;version&quot;: &quot;1.0&quot;,    
      &quot;background&quot;: {
          &quot;scripts&quot;: [&quot;background.js&quot;]
      },
      &quot;permissions&quot;: [
          &quot;tabs&quot;,
          &quot;alarms&quot;
      ],
      &quot;browser_action&quot;: {
          &quot;default_icon&quot;: &quot;icon.png&quot;,
          &quot;default_popup&quot;: &quot;popup.html&quot;
      }
  }
  </code></pre>
  <p>I trying to create a function to make a popup &quot;great&quot; every minute like this:</p>
  <pre><code>chrome.alarms.onAlarm.addListener(function(){
          alert('great');
      });
  </code></pre>
  <p>Could someone please tell why is it not triggering that alert. I check the console, no error was displayed.</p>