Search code examples
iosswiftapp-storeprogressive-web-apps

Can a PWA app be published to app store Swift


Is there any way to push these PWA apps to apple store. So my query is whether we have tools for converting the Progressive Web Apps as .ipa files so that we can put them to apple store.

I googled a bit and is right now confused because some say it is possible, some say not possible in Apple store.

Any help on this will be very grateful. Thanks


Solution

  • 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:

    1. 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.
    2. 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/