Unlike Android, TWA support is not available in Apple platforms yet. So for publishing PWA to apple app store, I presume we have to use WKWebView. I could find these two approaches:
- Hybrid app package: Make a hybrid app using Cordova or Capacitor. These will provide an app wrapper to bundle your app's assets with IPA. But currently, it does not support service workers.
- PWA launcher: Using WKWebView and AppBoundDomains (recently released, available in iOS14). With this, we can launch the browser app in standalone mode. More info on this: https://www.youtube.com/watch?v=LELAuNihs18
Useful links: https://firt.dev/ios-14/#web-views-and-pwas-in-the-appstore
https://www.simicart.com/blog/pwa-app-stores/
https://webkit.org/blog/10882/app-bound-domains/
We used pwabuilder.com to generate swift projects for our applications.
After some tweaking (mostly oauth flow, cookies and external resource handling), we were able to publish multiple 100% web-based apps to the App Store.
As it is still a regular swift app, there is an ability to add any swift-based components to/instead of any routes (for example, we added native animated loader screens, which are shown while waiting for the SSR to load), as well as to handle notifications.
P.S. we use bubblewrap for TWA android build. It requires very little configuration, so we do not care much about reusing non-web codebase across the platforms.
In a few words: this dilemma is about native push notifications on iOS in a Webapp (React PWA). Are things 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
Nope. Still no way to do this. You could send emails or SMS, but that's about it. MacOS Suffari isn't much better either...
I’m silently crying with you. This little feature would make my life so much easier. Instead of adding a little feature to my existing code base I now have to pay an app-developer big bucks to remake something that’s already build just for the ability to push some notifications.
Because there is no word from Apple on whether it’s coming at all I feel like it’s leaves me no choose but to hire the app-guy. You’ll see that the moment the app is build Apple will announce the possibility to do webpush. 😭
Does anyone have the answer on the current status of PWA's on Ios and the viability of being added to the app store?
I looked at this quite a while back and at that time it wasn't possible.
i read this page https://www.koombea.com/blog/progressive-web-apps-for-ios/ which mentioned there are restrictions on features.
What are the requirments for getting a PWA in the app store?