Requirements to make PWA in a WebAPK format

戏子无情 提交于 2019-12-09 15:50:04

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/47801297/requirements-to-make-pwa-in-a-webapk-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!