web-push-php icon indicating copy to clipboard operation
web-push-php copied to clipboard

Web push coming to Safari on macOS 13 (in 2022) and Safari on iOS 16 (in 2023)

Open chrisdeeming opened this issue 2 years ago • 3 comments

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:

  • Built-In Web Notifications
  • Push API

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.

image

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.

👀

chrisdeeming avatar Jan 17 '22 11:01 chrisdeeming

Release 138 does not make any changes with regards to push notifications.

chrisdeeming avatar Jan 21 '22 09:01 chrisdeeming

No changes in Release 139 but, guys, iOS 15.4 dev beta was released and...

image

image

image

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...

🤯👀

chrisdeeming avatar Jan 29 '22 09:01 chrisdeeming

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.

chrisdeeming avatar Jul 04 '22 10:07 chrisdeeming