9

I am looking for a way to send and display notifications on ios pwa apps.

I know it is not possible since the ios safari (and non of the other browsers on ios) support neither the push api nor the notification api.

I am wondering if there was a workaround to do that.

I have already taken a look at this answer, but honestly didn't understand at all.

Nymeria
  • 61
  • 1
  • 8
alirezafarin
  • 185
  • 1
  • 10

2 Answers2

6

The truth is NOT for mobile Safari, at the time I write this answer. I am doing a long research... The Apple PWA on Safari increased a lot, but is not comparable to others like Google Chrome browser. As It was said in the article:

At this point in time Apple's iPhone and iPads do not support native push notifications. You can gracefully fallback to SMS notifications.

So, till the moment I have this resume to share:

  • Do Progressive Web Apps (PWA) work on iOS? YES...
  • Apple may wants to turn the PWA as an alternative to the Apple Store.
  • We still can’t open an external link in Safari
  • Still can’t use Push Notifications
  • There is a 50MB service worker cache limit
  • Web apps that have not been used will have their cached assets purged after 7 days

Fonts:webkit.org,developer.apple.com,brainhub.eu,love2dev.com,firt.dev

Everton Costa
  • 570
  • 5
  • 16
5

NEW:

Push API is currently in development for Safari (including iOS). It is not currently finished but should be available for testing in a Safari Technology Preview within the next few months.

OLD:

It is not possible to have Push Notifications on Safari. It's been brought up many times and has even been a topic of this years WWDC.

See the following threads:

https://developer.apple.com/forums/thread/681575

https://developer.apple.com/forums/thread/681748

If developers want push notifications in Safari we'll need to have a much louder voice. As stated in the link above, native apps got notifications in 2009, it's 2021 and Apple has not even indicated if they are willing to work on it.

Tony J Watson
  • 629
  • 2
  • 9
  • 20