7

I am trying to add an internal web application to the homescreen of an android device for testing. This should be as a real chrome-wrapped web app with full screen, custom icon, etc.

But it doesn't work, and I see no ways of debugging/troubleshooting the problem.

The manifest is added and linked. The server is on an IP address, non-standard port and with a self-signed SSL certificate - could any if these details be the problem?

Any help on getting this to work, would be much appreciated!

4

2 回答 2

3

有几种方法可以测试您的配置是否正确。

  • 使用 Mounir Lamouri 的Manifest Validator查看是否有任何明显的错误
  • 检查 Chrome 开发工具。
    • 如果找到(通过link rel=manifest)并且您有服务人员, Chrome 将始终尝试下载清单和图标
    • 如果您没有服务人员,请从 Android 上的 Chrome 手动执行“添加到主屏幕”(当您通过 USB 调试连接时,请参阅chrome://inspect),您将看到它获取清单。

正在下载清单

如果您没有看到正在下载的清单,那么很可能您的页面配置错误,因此请确保<link rel="manifest" href="{url to your manifest}">您的页面中有

于 2015-12-01T12:52:14.147 回答
1

另外,请务必在chrome://flags中禁用“绕过用户参与检查” ,这样您就可以确保您的 Chrome 浏览器始终满足允许安装的条件

在此处输入图像描述

于 2016-06-19T05:27:56.463 回答