混合应用程序,具体取决于服务器端补丁

编程入门 行业动态 更新时间:2024-10-27 12:28:19
本文介绍了混合应用程序,具体取决于服务器端补丁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想制作一个混合应用程序,该应用程序可以经常打补丁并像网站一样立即反映出来. 原生应用每次都要花费太多时间才能获得Store的批准. 因此搜寻了Cordova,Xamarin,React Native等...,但不确定哪一个最适合我. 我不会使用复杂的功能或逻辑,也不需要高性能.就像商业购物应用一样.

有什么建议吗? 预先谢谢你.

解决方案

如果您不希望用户批准商店批准过程和应用程序更新等待时间,那么最好的选择是渐进式Web应用程序(PWA).

您可以创建常规的网络应用(例如 Angular 5支持开箱即用的PWA )或使用 workbox 和您选择的框架.将您的Web应用程序部署到Web服务器后,您可以使用3个选项来服务您的用户群,而且好消息是您可以毫不费力地支持这三个用户,从而最大程度地提高用户群,

1)使用 pwabuilder 之类的工具,该工具来自Microsoft,可以将其打包到不同的应用商店中.尽管您仍然需要经过一次时间存储批准流程,但仅此而已.所有以后的更新都通过ServiceWorkers推送,您不必在应用商店中更新应用. PWABuilder使用Cordova构建适用于iOS和Android的应用程序包,后者使用webview呈现页面.在Chromium版本的Webview支持PWA的新Android设备上,缓存将由服务部门负责.对于一小部分不支持PWA的设备,您的应用仍然可以在Web视图中运行而无需缓存.

2)用户使用网络浏览器(例如chrome)访问您的网页,他们可以获得PWA的性能优势和后台更新.

3)在第二个选项的顶部,当用户在浏览器中访问您的网页时,用户还可以将应用添加到主屏幕,这将创建一个图标之类的应用并在运行时进行打包.此安装的PWA几乎像普通应用程序一样工作,但有一些限制.请参阅当今网络可以做什么.此解决方案也适用于iOS(Safari->共享->添加到主屏幕).

这是比较PWA与您提到的其他解决方案. PWA 此处的基础.

I want to make a Hybrid app that can be frequently patched and immediately reflected like web site. Native apps take too much time to get Store's approval every time. So searched for Cordova, Xamarin, React Native and so on..., but not sure about which one would be the best for me. I won't use complicated functions or logic and don't need high performance. It's like a commerce shopping app.

Any suggestions? Thank you in advance.

解决方案

If you don't want the store approval process and app update wait time from the user side, your best bet is Progressive web apps(PWA).

You can create a regular web app(something like Angular 5 which supports PWA out of the box) or use workbox and framework of your choice. Once you deploy your web app to a web server, you have 3 options to serve your user base and the good news is you can support all three with no much effort to maximize your user base,

1) Use tools like pwabuilder, which is from Microsoft to pack it for different app stores. Though you will still have to go though one time store approval process, that's all about it. All future updates are pushed through ServiceWorkers and you don't have to update the app in app store. PWABuilder builds app package for iOS and Android using Cordova, which uses webview to render your page. On the new Android devices where Chromium version of webview supports PWA, caching will be taken care by service works. For a smaller chunk of devices which are not supporting PWA, your app will still work in web view without cache.

2) Users visit your web page in a web browser, say chrome, and they can take the performance benefits and background updates of PWA.

3) On top of the 2nd option, when the user is vising your web page in a browser, user can also add the app to home screen, which will create an app like icon and packge in the runtime. This installed PWA, works almost like a regular app with some limitations. See what web can do today. This solution is available for iOS as well (Safari -> share -> Add to home screen).

Here is a comparison on PWA vs other solutions which you have mentioned. PWA basics here.

更多推荐

混合应用程序,具体取决于服务器端补丁

本文发布于:2023-11-04 10:29:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557684.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器端   应用程序   补丁

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!