Web应用程序安装横幅未显示

时间:2015-08-17 17:41:15

标签: android google-chrome service-worker

我有一个网站(https://adhiyan.in),我认为该网站符合网络应用安装横幅的所有条件,但横幅未显示。有人可以帮我找出原因吗? (我尝试过使用和不使用标志chrome:// flags /#bypass-app-banner-engagement-checks)

{
  "short_name": "Adhiyan",
  "name": "Adhiyan Varunkumar",
  "icons": [{
    "src": "/assets/favicons/android-icon-36x36.png",
    "sizes": "36x36",
    "type": "image/png",
    "density": "0.75"
  }, {
    "src": "/assets/favicons/android-icon-48x48.png",
    "sizes": "48x48",
    "type": "image/png",
    "density": "1.0"
  }, {
    "src": "/assets/favicons/android-icon-72x72.png",
    "sizes": "72x72",
    "type": "image/png",
    "density": "1.5"
  }, {
    "src": "/assets/favicons/android-icon-96x96.png",
    "sizes": "96x96",
    "type": "image/png",
    "density": "2.0"
  }, {
    "src": "/assets/favicons/android-icon-144x144.png",
    "sizes": "144x144",
    "type": "image/png",
    "density": "3.0"
  }, {
    "src": "/assets/favicons/android-icon-192x192.png",
    "sizes": "192x192",
    "type": "image/png",
    "density": "4.0"
  }],
  "display": "standalone"
}

我正在使用Chrome for Android stable v44。*

1 个答案:

答案 0 :(得分:3)

我已经弄明白了这个问题。此时,“start_url”属性似乎是横幅显示的必需属性。我已经为要显示的横幅添加了“start_url”:“/ index.html”。