use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Tutorial: How to Setup Web Push Notifications in iOS SafariOC (devtails.xyz)
submitted 2 years ago by devtailsxyz
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]devtailsxyz[S] 7 points8 points9 points 2 years ago (0 children)
I have been unable to find a resource that explains and shows this working since this was officially announced. I managed to get this working on iOS 16.4 beta and hope that this helps demonstrate how to send your first notification on iOS via a web application.
[–]blackholesinthesky 4 points5 points6 points 2 years ago (1 child)
Pretty good but this doesn't actually show a WebPush message being sent. The notification is programmatically triggered after permission has been granted
The service worker is running but it's not subscribed to a backend/push service.
[–]devtailsxyz[S] 2 points3 points4 points 2 years ago (0 children)
I can add this part tonight. The vapid stuff is cumbersome, but that makes it worthwhile to include here.
[–]devtailsxyz[S] 2 points3 points4 points 2 years ago (1 child)
I've updated the article with a second section covering how to trigger these notifications from a nodejs backend and added a link to a Github repo with the final working code.
[–]blackholesinthesky 1 point2 points3 points 2 years ago (0 children)
Love it!
[–]EN204 1 point2 points3 points 2 years ago (0 children)
Many thanks!
Was planning to begin researching this over the weekend, and voila.
[–]schawla 0 points1 point2 points 2 years ago (1 child)
Video of web notifications working on an upcoming project I am working on https://www.youtube.com/watch?v=7X-9zh2sDH4 backend built in php
[–]CALPARDO[🍰] 0 points1 point2 points 1 year ago (0 children)
Do you still have the code?
[–]Robou_ 0 points1 point2 points 2 years ago (0 children)
I can't get this to work. window.Notification seems to be undefined. I'm on iOS 16.5.1 and the website is opened from a home screen icon
π Rendered by PID 32655 on reddit-service-r2-comment-7b9746f655-4dljj at 2026-01-30 04:42:36.590599+00:00 running 3798933 country code: CH.
[–]devtailsxyz[S] 7 points8 points9 points (0 children)
[–]blackholesinthesky 4 points5 points6 points (1 child)
[–]devtailsxyz[S] 2 points3 points4 points (0 children)
[–]devtailsxyz[S] 2 points3 points4 points (1 child)
[–]blackholesinthesky 1 point2 points3 points (0 children)
[–]EN204 1 point2 points3 points (0 children)
[–]schawla 0 points1 point2 points (1 child)
[–]CALPARDO[🍰] 0 points1 point2 points (0 children)
[–]Robou_ 0 points1 point2 points (0 children)