iOS 16 web push notifications in 2023

There’s a presentation on it tomorrow:

There’s a little more detail about the implementation here.

https://webkit.org/blog/12824/news-from-wwdc-webkit-features-in-safari-16-beta/

Web Push is coming to Safari 16 on macOS Ventura. This lets you remotely send notifications to users of your websites and web apps — and deliver those notifications even when Safari isn’t running. It uses the same combination of web standards you may be familiar with from other browsers: Push API and Notifications API, along with Service Worker.

Users opt into notifications by first indicating interest through a user gesture — such as clicking a button. Then, they’ll be prompted to give permission for your site or app to send notifications. Users will be able to view and manage notifications in Notifications Center, and customize styles and turn notifications off per website in Notifications Settings.

If you’ve already implemented Web Push for your web app or website using industry best practices, it will automatically work in Safari. Although, if you’ve excluded Safari through browser detection, you’ll need to switch to feature detection to get it working.

Web Push in Safari uses the same Apple Push Notification service that powers native push on all Macs and iOS devices. If you tightly manage push endpoints on your server, be sure you allow URLs from any subdomain of push.apple.com. You do not need to be an Apple Developer Program member.

And look for Web Push for iOS and iPadOS in 2023.

macOS Safari has had non-standard web push notifications since 2013, but it’s never worked for iOS before.

This announcement just seems to indicate that macOS Safari will switch to a standards-based API in Safari 16, which is nice, but if you wanted macOS Safari push notifications, you can already implement them today.

iOS support will be the real game changer.

9 Likes