Skip to content
loading...

Cannot stack multiple push notifications

harittweets profile image Harit Himanshu twitter logo github logo ・1 min read

Cannot stack multiple push notifications

0

I am working on a code to push notifications to the browser. My code to display notifications look like below

const imageWithTextNotification = (reg) => {
            // more options at https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#Syntax
            const options = {
                icon: "imgs/notification.png",

                // 07 - Notification with a body
                body: "Alert!! This is image notification",
twitter logo DISCUSS
Discussion
markdown guide
Classic DEV Post from Aug 1 '19

Which dev.to loading GIF do you prefer?

I made some dev.to loading gifs

Harit Himanshu profile image
I am hands-on software professional with more than a decade of experience in building and shipping products at companies of small to large sizes. contributed in Advertising,CleanTech,Security,FinTech