Closed chrisdeeming closed 6 months ago
Release 138 does not make any changes with regards to push notifications.
No changes in Release 139 but, guys, iOS 15.4 dev beta was released and...
It's more or less in the same functional state as Safari TP except on iOS there doesn't appear to be any concept or UI yet that can indicate granting permissions per-site to use Notifications. In our web app pictured above it would appear that the button does nothing but on refresh it indicates notifications have been "blocked" (denied permissions on the prompt even though there's no prompt).
This is HUGE. I actually think it's happening...
🤯👀
I've changed the title of this issue now that the information is confirmed.
Apple announced that web push notifications are coming in macOS 13 this year and iOS 16 next year.
Currently you have to enable the relevant experimental flags in Safari but I can confirm that sending push notifications via this library to Safari on macOS 13 (beta) does indeed work without changes to the library.
The web push endpoint, if you're curious, is: https://web.push.apple.com/
We'll have to wait a little longer for iOS support but they've mentioned 2023.
I don't want to unduly get anyone's hopes up but it appears as though Safari Technology Preview (Release 137) has a number of experimental feature flags that may be interesting:
The bad news is that a) the feature is currently unannounced anywhere that I can see and b) it doesn't currently work.
In my testing in an existing web app while feature detection works, it prompts for permission, but it does not appear to actually register that permission has been granted.
Unsure whether it's related but there's a Permission API but enabling that has no effect.
Anyway, this is for information only. It may be something that we want to keep a close eye on in case the eventual sending of notifications to Apple endpoints requires some library changes.
👀