DEV Community

Discussion on: Notification API: Show notifications from your web app 🔔

Collapse
 
akchauhan2 profile image
Ajay Chauhan

Great!!
But what if we want to send notification sometime after a user closes the page.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
akchauhan2 profile image
Ajay Chauhan

Bro Service workers will work, but I wanted to hear anything other than Service worker.

Collapse
 
evanburg profile image
Evan Burgess

You would have to implement the Push API to send notifications when the web app is in the background or closed.

developer.mozilla.org/en-US/docs/W...

Collapse
 
akchauhan2 profile image
Ajay Chauhan

Yeah, it will work!!