As of today a web app cannot receive push notifications on any iOS browser (Safari, Chrome for iOS, ...). The reason is that iOS does not yet include an implementation of Service Workers, which are needed for push notifications to work. It is currently in development, though: https://webkit.org/status/#specification-service-workers
And it is already working on Safari for OS X: https://developer.apple.com/notifications/safari-push-notifications/
Meanwhile, you will have to settle for a native implementation of your app, at least on iOS. My recommendation would be using what you have developed for web and making it a hybrid app through the use of Apache Cordova.
You can also regularly check if support is available here:
- https://jakearchibald.github.io/isserviceworkerready/
- https://caniuse.com/#feat=serviceworkers
- https://caniuse.com/#feat=push-api
google chrome - Push notifications on iOS from web-app - Stack Overflow
iOS 16.4 finally introduced push notifications for iOS devices. How is Chrome on MacOS/iOS?
Can't get Web Notifications to work on iOS - Join the Bubble Community | Zeroqode Forum
When will Apple iOS Safari support web push?
I think they're finally starting to see the light and move in that direction. They support PWA's (finally) but it's now first quarter 2019 and as of yet I'm STILL waiting to see web push supported on iOS.
It's not hard Apple! You're not going to lose revenue by allowing a developer to make a PWA that sends web pushes to your device. If anything, by supporting PWAs but not web push, you are hurting your bottom line! More than likely a web developer working solely with PWAs is not going to go out of their way to buy a Mac, buy XCode, learn Swyft, and then PAY YOU to put their app in your store, where you get unfettered access to their code and 30% of the profits.
Personally, my "app" (PWA) is going to be listed in its documentation as Android and web only. I'll include the caveat that it will install on iOS but push notifications don't work, and I will include the note that, this is not a design flaw but a restriction put in place by Apple. I'm not looking to work with someone that won't work with me. Hot take/fair compromise: I'd gladly pay a subscription fee to Apple for a web push notification service (assuming it works cross platform and I can just swap in their service in place of Firebase)
Lastly, to those of you out there completely dismissing the idea of useful pop up notifications: get your heads out of your arses for a second.
More on reddit.comVideos
As of today a web app cannot receive push notifications on any iOS browser (Safari, Chrome for iOS, ...). The reason is that iOS does not yet include an implementation of Service Workers, which are needed for push notifications to work. It is currently in development, though: https://webkit.org/status/#specification-service-workers
And it is already working on Safari for OS X: https://developer.apple.com/notifications/safari-push-notifications/
Meanwhile, you will have to settle for a native implementation of your app, at least on iOS. My recommendation would be using what you have developed for web and making it a hybrid app through the use of Apache Cordova.
You can also regularly check if support is available here:
- https://jakearchibald.github.io/isserviceworkerready/
- https://caniuse.com/#feat=serviceworkers
- https://caniuse.com/#feat=push-api
iOS supports Service Worker technology (e.g. for offline caching)
Web Push Notification support is added in iOS 16