'add to home screen' Web App Install Banner not showing up

时间:2018-03-25 21:09:54

标签: mobile-website banner progressive-web-apps

I don't get an 'add to home screen' banner when I go on my website. My service worker is ok and my manifest.json too

When i try the add to homescreen in chrome dev with my desktop i have the banner but i don't have it automaticaly with my android phone

Can you help me please

1 个答案:

答案 0 :(得分:0)

在这种情况下,您最好的办法是从在台式计算机上打开 Chrome开发工具开始。导航到“ 审核”标签。屏幕应该看起来像这样:

the documentation for Element objects(单击以查看图像)

请确保已选中“ 移动”,因为这似乎对您来说只是移动问题,然后单击“ 运行审核”。它应该回来像这样:

Chrome Dev Tools Audit Tab(单击以查看图像)

在此示例中,一切都正确,因此我们看到带有“ 100”的绿色圆圈。如果PWA的实施方式有任何问题,将在此处显示错误。

希望与其他遇到此问题的人一起对您有所帮助!