问题
I have a pwa , that passes all instalable tests with the google chrome lighthouse audit tool yet I don't have the option to install the app on chrome, the option add to home screen doesn't show up, despite no errors and passing the instalable test.
but the option isn't there as you can see below
What am I missing here?
回答1:
Passing the Lighthouse audits are not enough. It is merely one of the many tools that are used to measure the various aspects of your web application, including performance, and accessiblity.
In order to enable your web application as a Progressive Web Application (PWA), you will need to install service workers as well as having HTTPS set up on your web servers. You may refer to the full list of prerequisites, as well as the other features of PWAs. Do note that
You may follow the following instructions made available on the official Angular documentation, which provides a step by step guide to enable service workers on your Angular application.
来源:https://stackoverflow.com/questions/57481817/pwa-not-installable-though-chrome-despite-passing-the-audit