Skip to content
← Back to Community
How would I go about adding push notifications to my HTML5 web-hosted REPL?
Profile icon
jirachi123

Link to my code: https://repl.it/@jirachi123/Push-Notification-Test

I'm trying to make a website, just a test one for now, that can send the user a notification when clicking a button, or just as a "Sign up to my newsletter!" kind of thing like whenever I want I can push out notifications to people who have signed up to it. I'm not really sure how to do it, but I did notice that HTML5 has a Notifications API. If anyone can help me with this, that would be amazing!

Thanks,

Jirachi123

Voters
Profile icon
jirachi123
Comments
hotnewtop
Profile icon
BrightSideSide

Notify me

Profile icon
BrightSideSide

try using this code:

Profile icon
BrightSideSide

hi

Profile icon
jirachi123

Nevermind, I searched it up and found the MDN Notifications API documentation. :P

Profile icon
HalfCookedRamen

@jirachi123 whats the code?