1 | 参考:https://medium.freecodecamp.org/i-built-a-pwa-and-published-it-in-3-app-stores-heres-what-i-learned-7cb3f56daf9b |
考虑App Store的原因:
- User demand (部分用户已经习惯了用Store去寻找App)
- Web app restrictions by Apple hostile mobile platforms(Apple平台对Web App有诸多限制)
代价:
- Apple: 99刀一年,可以拿到所有权限
- Google: 只需要一次性交25刀
- Microsoft: 免费
能获得的权限:
- Apple: 没有直接给Web App去申请Permission的机会,需要包一层Native Wrapper
- Google: 一直在推进Web App能直接获取的权限(特别是Chrome),所以不是问题
- Microsoft: 使用window.Windows.*的API,基本上可以拿到所有权限
HOW – App Store注册:
- Apple: 很麻烦,一堆认证
- Google: 容易
- Microsoft: 容易
HOW – App打包和上传:
- Apple: 要用Mac要用Xcode,步骤繁琐
- Google: Android Studio,申请一个cert然后上传即可
- Microsoft: 用命令行或者VS,然后上传;或者等待爬虫自动爬取
可以使用PWABuilder。
HOW – App测试
- Apple: install Test Flight; add tester’s email in iTunes Connect
- Google: in Android Dev Center, add emails of testers directly
- Microsoft: TBD
HOW – APP审查
- Apple: 审查比较严格也比较有帮助
- Google: 基本上感觉不到审查,也发现不了什么问题
- Microsoft: 有自动审查和人工审查,能有助发现问题
作者的结论:
“
Final thoughts: The web always wins. It defeated Flash. It killed Silverlight. It destroyed native apps on desktop. The browser is the rich client platform. The OS is merely a browser-launcher and hardware-communicator.
The web will win, too, on mobile. Developers don’t want to build 3 separate apps for the major platforms. Companies don’t want to pay for development of 3 apps.
The answer to all this is the web. We can build rich web apps — Progressive Web Apps — and package them for all the app stores.
“