Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 清单没有'short_name',清单没有'name'`_Php_Json_Web Applications_Progressive Web Apps - Fatal编程技术网

Php 清单没有'short_name',清单没有'name'`

Php 清单没有'short_name',清单没有'name'`,php,json,web-applications,progressive-web-apps,Php,Json,Web Applications,Progressive Web Apps,运行Google Chrome审计时,我发现以下错误: Web应用程序清单不符合可安装性要求故障:清单没有“短名称”,清单没有“名称”。 以及 未为自定义启动屏幕配置:清单没有至少512px的PNG图标,清单没有“名称”。 我在根目录中有一个app files,以及manifest.json,如下所示: { "name": "This is my long name", "short_name": "short name", "theme_color": "#cd061d",

运行Google Chrome审计时,我发现以下错误:

Web应用程序清单不符合可安装性要求故障:清单没有“短名称”,清单没有“名称”。

以及

未为自定义启动屏幕配置
:清单没有至少512px的PNG图标,清单没有“名称”。

我在根目录中有一个
app files
,以及manifest.json,如下所示:

{
  "name": "This is my long name",
  "short_name": "short name",
  "theme_color": "#cd061d",
  "background_color": "#ececec",
  "display": "browser",
  "Scope": "/",
  "start_url": "/index.php",
  "icons": [
    {
      "src": "app-images/icons/icon-72x72.png",
      "sizes": "72x72",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-96x96.png",
      "sizes": "96x96",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-128x128.png",
      "sizes": "128x128",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-144x144.png",
      "sizes": "144x144",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-152x152.png",
      "sizes": "152x152",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-384x384.png",
      "sizes": "384x384",
      "type": "image/png"
    },
    {
      "src": "app-images/icons/icon-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "splash_pages": null
}
如果有人能告诉我我做错了什么?提前感谢各位

解决了

我使用的favicon生成器中的site.webmanifest阻止了我的自定义manifest.json文件。

已解决

我使用的favicon生成器中的site.webmanifest阻止了我的自定义manifest.json文件