DEV Community

Cover image for Notification API: Show notifications from your web app πŸ””

Notification API: Show notifications from your web app πŸ””

Mohd Shahid on September 04, 2021

Hey guys. Notifications are vital if you want to drive traffic to your web applications. Notifications can be shown even if the user is not active ...
Collapse
 
akchauhan2 profile image
Ajay Chauhan β€’

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

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!!

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
 
tochimclaren profile image
tochimclaren β€’

Nice, will make sure to add this to my Web app.

Collapse
 
sidmirza4 profile image
Mohd Shahid β€’

Thanks buddy.
Reach me to twitter if you need any help.

Collapse
 
tochimclaren profile image
tochimclaren β€’

Sure

Collapse
 
schizox10 profile image
Azim Anuar β€’

Hey Mohd Shahid. Thanks a lot for this. Im sorry just land on dev.to. my bad just overlook for the real place for the startup in the learning the new tech. thanks to the community..namaste..:)

Collapse
 
langf00rd profile image
langford β€’

Perfect. Just what I needed✌

Collapse
 
sidmirza4 profile image
Mohd Shahid β€’

Glad you found it useful