可以将 PWA 应用发布到应用商店和 Play 商店吗

可以将 PWA 应用发布到应用商店和 Play 商店吗

问题描述:

我正在创建一个 React JS Web 应用程序,该应用程序最终将转换为 PWA,以便用户可以将其安装在他们的移动设备上.现在客户要求找到一种方法将这些 PWA 应用程序推送到苹果商店和谷歌商店.所以我的问题是我们是否有工具可以将 Progessive Web Apps 转换为 apk 或 ipa 文件,以便我们可以将它们放入苹果商店或 Play 商店.

I am creating a React JS web app which will eventually be converted to a PWA so that the users can install it on their mobile devices. Now the client ask to find out a way to push these PWA apps to apple store and google store. So my query is whether we have tools for converting the Progessive Web Apps as apk or ipa files so that we can put them to apple store or play store.

我用谷歌搜索了一下,现在很困惑,因为有人说这是可能的,有人说在 Apple Store 中不可能.我也看到了一些像 PWABuilder 这样的工具,但我不确定哪个是正确的,以及我们是否可以将 PWA 应用发布到应用商店和 Play 商店.

I googled a bit and is right now confused because some say it is possible, some say not possible in Apple store. I also saw some tools like PWABuilder, but I am not sure which one is the right one to use and whether we can publish a PWA app to the app store and play store.

对此的任何帮助将不胜感激.

Any help on this will be very grateful.

谢谢

虽然在这两种情况下都是可能的,但在 Apple Store 上发布 PWA 是一段令人难以置信的艰难旅程,因为 Apple 工程师一直试图设置障碍.这是由苹果决定的,因为 Apple 正在从其应用商店中获利,而 PWA 确实会减少其中的一些收益.这也是 Safari 作为浏览器在支持 PWA API 方面远远落后于其他竞争对手的原因(PUSH API 例如,当他们宣传他们的 Apple 推送通知服务 (APN) 时).

While it is possible in both cases, publishing a PWA on the Apple Store is an incredible difficult journey, because Apple engineers try to build obstacles all the way long. This is by decision as Apple is making profits from its app store and PWAs would indeed subtract some of these gains. This is also the reason why Safari, as browser, is incredibly behind the other competitors in supporting PWAs APIs (PUSH API for example, as they promote their Apple Push Notification Service (APNs)).

长话短说,我将专注于 Google Play 商店,您可以在其中将 PWA 包装到受信任的网络活动 (TWA) 中后发布,从而允许 Chrome(v72 或更高版本)以全屏模式运行网站而无需APK(Android 包)中的浏览器工具栏.您可以在本教程中找到更多详细信息,以在 Play 商店发布 PWA.

Long story short, I would concentrate on Google Play Store, where you can publish a PWA after having wrapped it into a Trusted Web Activity (TWA), allowing Chrome (v72 or later) to run a website in fullscreen mode without a browser toolbar within an APK (Android Package). You can find further details in this tutorial to publish a PWA on the play store.