DEV Community

Harit Himanshu
Harit Himanshu

Posted on

Cannot stack multiple push notifications

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",

Top comments (0)