如何创建可在企业设备中分发的渐进式Web应用程序apk /任何类型的文件 [英] How to create Progressive web app apk/any type of file that can be distributed in a enterprise devices

本文介绍了如何创建可在企业设备中分发的渐进式Web应用程序apk /任何类型的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以理解的是,在用户访问支持的浏览器中的Web应用程序(现在我猜测是Chrome)后,渐进式网络应用程序(PWA)会添加到主屏幕中,然后单击添加到主屏幕。这对公众可用的PWA工作正常。

关于企业Android应用程序的思考,需要通过一些应用程序推送工具将其安装到数千个设备上,例如 Airwatch ,它几乎不可能让某人打开浏览器,放置该URL,然后添加到所有数千设备的主屏幕。

是否有任何其他方式可将此部署/添加图标自动化为Progressive Web应用程序的主屏幕,而不需要用户访问浏览器中的Web应用程序,点击添加到主屏幕?



我们考虑的一个选择是包装在科尔多瓦。但试图找到没有这种包装的解决方案。

解决方案

当Android用户点击添加到主页屏幕时,Chrome for Android使用WebPack即时生成并签署.apk文件(来自菜单或安装标语)选项,并且该站点具有有效的manifest.json和服务工作者。



提取和分发APK :可以使用文件资源管理器工具(如 ES文件浏览器。由于某些原因,某些默认的文件资源管理器工具无法找到该.apk文件。一旦导出,这个.apk就可以用于在受控环境中分发......就像在企业设备上那样,你可以强制欺骗Chrome浏览器。如果此.apk安装在没有Chrome浏览器的设备上,用户将会收到一条消息,说明Chrome需要打开此应用程序。一旦安装,可以使用安装PWA apk。



为了通过Play商店分发PWA应用,google正在简化流程。 当我们与他们联系以满足我们的企业需求时,谷歌工程师会安排构建APK(2011年3月)



完成提取APK并部署它,它应该为最终用户提供良好的体验,但我同意在Web应用程序上部署Web应用程序应该不会那么复杂Android。
我们目前正在开发简化的网络应用程序功能,您无需操作或构建APK,该功能将在托管设备上使用Play提供应用程序。



其他选项:如果您认为您的用户群可能没有Chrome或不想依赖该依赖项,则使用Cordova类混合解决方案进行包装是唯一的选择建立您的PWA应用程序以在应用程序商店分发的方式。使用此选项,如果设备中的webpack具有 40版 +,用户将获得PWA的好处。否则,它仍然可以作为常规的托管网络应用程序。

Understandably, Progressive web apps(PWA) are added to home screen after the user visits the web app in supported browser(chrome for now I guess) and clicks on "Add to Home Screen". This works fine for publicly available PWAs.

Thinking of Enterprise android applications, which needs to be installed to thousands of devices via some app push tools like Airwatch, its practically not possible to have someone open the browser, put the URL and then add to home screen in all thousands of devices.

Is there any other way to automate this deploy/add icon to home screen of a Progressive web app, not needing user to visit the web app in browser and clicking on "Add to Home Screen" ?

One option we thought about is wrapping in Cordova. But trying to find a solution without such wrapper.

解决方案

Chrome for Android generates and signs .apk file on the fly using WebPack, when the user clicks on "Add to Home screen" (from menu or install banner) option and if the site has a valid manifest.json and service worker.

Extracting and distributing APK: This .apk can be located and exported to desktop using file explorer tools like ES File Explorer. For some reason, some of default file explorer tools couldn't locate this .apk file. Once exported, this .apk can be used to distribute in controlled environment..like in enterprise devices, where you can enforce the deceive to have Chrome Browser. If this .apk is installed to devices which don't have Chrome browser, user will get a message saying "Chrome" is required to open this app. Once installed, installed PWA apk can be used.

For distributing PWA apps through Play store, google is streamlining the process. A google engineers repose on building APKs (March-2018), when we reached out to them for our enterprise needs.

"Well done extracting the APK and deploying it, it should give a good experience to end users, but I agree it shouldn't be that complicated to deploy web apps on Android. We are currently working on a streamlined web apps feature, with which you wouldn't need to manipulate or build APKs. This feature will be available on managed devices using Play to deliver apps"

Alternate options: If you think your user base may not have Chrome or don't want to rely on that dependency, wrapping with Cordova kind of hybrid solution is the only way to build your PWA apps for distribution in app stores. With this option, if the "webpack" in the device has the version 40+, user will get PWA benefits. Otherwise, it will still work as a regular hosted web app.

这篇关于如何创建可在企业设备中分发的渐进式Web应用程序apk /任何类型的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆