以WebAPK格式制作PWA的要求 [英] Requirements to make PWA in a WebAPK format

查看:110
本文介绍了以WebAPK格式制作PWA的要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的网站上工作。我设法使用网页清单文件获得基本的PWA功能。



不久前,Google发布了深度集成的PWA,允许用户在添加页面时创建WebAPK进入主屏幕。



我希望我的网页也具有这种功能,但是我不知道该怎么做才能获得该功能。

p>

我是否需要在清单文件sw.js和各种元标记之外添加一些额外的内容?

解决方案

这不是我们可以控制的。 Chrome正在试验改进的A2HS,因为他们称之为(A2HS代表添加到主屏幕),其中一部分是将PWA包装到APK中的内部服务。它最初隐藏在国旗后面,然后是 b
$ b


当您安装渐进式Web应用程序时,我们查看您的Web App Manifest和其他元数据,并创建安装在用户设备上的APK。


(强调我的,我们== Android)

所以除了确保我们的清单是有效的,网站是HTTPS,Service Worker正确安装等之外我们无能为力。 p>

I am working on my website. I managed to get basic PWA functionality using the web page manifest file.

Not long ago, Google released deeply integrated PWAs, allowing users to make a WebAPK when they added the page into the home screen.

I want my page to also have that kind of feature, but it is never been clear what I should do to get that functionality..

Do I need to add something extra aside from the manifest file, sw.js and various meta tags?

解决方案

This is not something we can control. Chrome was/is experimenting with "improved A2HS" as they called it (A2HS stands for "add to homescreen") and a part of that was an internal service that wrapped the PWA into APK. It was hidden behind a flag initially, then it was opened to the public as default in Feb 2017.

When you install a Progressive Web App, we look at your Web App Manifest and other meta-data and create the APK that is installed on to the user's device.

(emphasis mine, we == Android)

So there's nothing we can do except being sure our manifest is valid, site is HTTPS, Service Worker installs correctly etc.

这篇关于以WebAPK格式制作PWA的要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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