title: Using setInterval in Service worker
body: <p>Please I want to use setInterval which shows a notification every 5 seconds  inside my service worker javascript file and it works fine at first but gradually after about 20 seconds it stops working </p>
  
  <p>Here is the part where timer is initialized in the service worker java script file</p>
  
  <pre><code>self.addEventListener('activate', function(event) {
    setInterval(function()
     {
  
       self.registration.showNotification("title", {
         body: "test"
       });
  
  
     },5000);
  
  });
  </code></pre>