Push notifications are finally arriving on iOS—hallelujah! Like I said last year, this is my number one wish for the iPhone, though not because I personally ever plan to use the feature:
When I’m evangelising the benefits of building on the open web instead of making separate iOS and Android apps, I inevitably get asked about notifications. As long as mobile Safari doesn’t support them—even though desktop Safari does—I’m somewhat stumped. There’s no polyfill for this feature other than building an entire native app, which is a bit extreme as polyfills go.
With push notifications in mobile Safari, the arguments for making proprietary apps get weaker. That’s good.
The announcement post is a bit weird though. It never uses the phrase “progressive web apps”, even though clearly the entire article is all about progressive web apps. I don’t know if this down to Not-Invented-Here syndrome by the Apple/Webkit team, or because of genuine legal concerns around using the phrase.
Instead, there are repeated references to “Home Screen apps”. This distinction makes some sense though. In order to use web push on iOS, your website needs to be added to the home screen.
I think that would be fair enough, if it weren’t for the fact that adding a website to the home screen remains such a hidden feature that even power users would be forgiven for not knowing about it. I described the steps here:
- Tap the “share” icon. It’s not labelled “share.” It’s a square with an arrow coming out of the top of it.
- A drawer pops up. The option to “add to home screen” is nowhere to be seen. You have to pull the drawer up further to see the hidden options.
- Now you must find “add to home screen” in the list
- Add to Reading List
- Add Bookmark
- Add to Favourites
- Find on Page
- Add to Home Screen
As long as this remains the case, we can expect usage of web push on iOS to be vanishingly low. Hardly anyone is going to add a website to their home screen when their web browser makes it so hard.
If you’d like to people to install your progressive web app, you’ll almost certainly need to prompt people to do so. Here’s the page I made on thesession.org with instructions on how to add to home screen. I link to it from the home page of the site.
I wish that pages like that weren’t necessary. It’s not the best user experience. But as long as mobile Safari continues to bury the home screen option, we don’t have much choice but to tackle this ourselves.
# Shared by Simon Elvery on Friday, February 17th, 2023 at 12:05pm
# Shared by Charles Roper on Friday, February 17th, 2023 at 12:29pm
# Shared by Open Web Advocacy on Friday, February 17th, 2023 at 1:02pm
# Shared by Keith J Grant on Friday, February 17th, 2023 at 3:57pm
# Shared by Tyler Sticka on Friday, February 17th, 2023 at 3:57pm
# Shared by Peter O'Shaughnessy on Friday, February 17th, 2023 at 7:02pm
# Shared by Marc Friederich on Saturday, February 18th, 2023 at 8:22am
# Shared by Dawn Ahukanna on Saturday, February 18th, 2023 at 2:54pm
# Shared by Alex Russell on Saturday, February 18th, 2023 at 5:38pm
# Shared by Bruce B Anderson on Saturday, February 18th, 2023 at 5:38pm
# Shared by Jeffrey Lembeck on Saturday, February 18th, 2023 at 7:17pm
# Shared by Matt Lehrer on Saturday, February 18th, 2023 at 8:15pm
# Shared by Bramus on Saturday, February 18th, 2023 at 8:15pm
# Shared by Elly Loel ✨🌱 on Saturday, February 18th, 2023 at 9:20pm
# Shared by Reid Burke on Sunday, February 19th, 2023 at 1:10am
# Shared by Bill Tribble on Sunday, February 19th, 2023 at 9:22am
# Shared by 🌮 Dave Millar 🌮 on Sunday, February 19th, 2023 at 10:24am
# Shared by rriver on Sunday, February 19th, 2023 at 1:06pm