the below code generates a notification which automatically goes away in 20 secs on chrome .. I don't get why this is happening ...!!! the document says that default timeout value of notification is 8 secs , then why it takes 20 secs to dismiss the notif,,,
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 ...!
self.registration.showNotification(title, {
body: body,
icon: icon,
tag: tag,
data: notificationData,
vibrate: vibrate,
requireInteration:'true'
Update the issue was requireInteraction flag spelling .. ..my bad ...!!