Web API Push on iOS/Safari - React App. Really no Service in 2021?

Viewed 2630

in a few words: this dilemma is about native push notifications on iOS in a Webapp (React PWA). Is it still completely shut down by Apple? And still not 3rd Party service out there to circumvent this? Unimaginable really, can't tell you how much any hints/suggestions would be valued.

Background info: Truly EVERYTHING was looked into - including services like Pusher Beams, OneSignal etc.

What are your thoughts on the subject and how could this be handled in 2021?

Cheers

1 Answers

No, at this time it is not supported, and it doesn't seem to be on the WebKit Feature Status roadmap.

The best way to support this today would be to feature detect if the Web Push API is available, if it's not, ask the user to sign up for an email notification.

if ('PushManager' in window) {
  // Show UI to request user subscribe to push notifications
} else {
  // Push isn't supported on this browser, show UI to request user
  // subscribe to email notifications.
}
Related