service worker showNotification require interaction flag
<p>the below code generates a notification which automatically goes away in 20 secs on chrome ..
I don't get why this is happening ...!!!
the <a href="https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification" rel="nofollow">document</a> says that default timeout value of notification is 8 secs , then why it takes 20 secs to dismiss the notif,,,</p>

<p>and i know the require_interaction flag is not stable but ...do any of you have any idea as to if it works with only a specific chrome version etc ...!</p>

<pre><code>self.registration.showNotification(title, {
        body: body,
        icon: icon,
        tag: tag,
        data: notificationData,
        vibrate: vibrate,
        requireInteration:'true'
</code></pre>

<p>Update the issue was requireInteraction flag spelling .. ..my bad ...!!</p>