当我提示“添加到主屏幕"时,Chrome无法识别我的manifest.json.横幅 [英] Chrome does't recognize my manifest.json when I prompt "Add to homescreen" banner

查看:530
本文介绍了当我提示“添加到主屏幕"时,Chrome无法识别我的manifest.json.横幅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个清单,以启动添加主屏幕"横幅.但是,Chrome似乎无法识别我的清单文件来启动横幅.

I want to create a manifest to launch a "Add t homescreen" banner. However, it seems that chrome does't recognize my manifest file to launch the banner.

在chrome调试器的应用程序"标签中,应使用manifest.json中的信息填充字段

Here in the application tab in chrome debugger, the fields should be filled with the information from manifest.json

清单文件已正确声明,因为它指向正确的文件.这是manifest.json:

The manifest file is declared correctly, because it points to the right file. Here is the manifest.json:

推荐答案

似乎未正确解析Web App Manifest.您可以使用 Web清单验证器进行验证.

It seems that the Web App Manifest is not being parsed correctly. You can validate it using the Web Manifest Validator.

您是否检查了以下类似问题: Web应用清单未由Chrome开发工具解析

Did you check this similar question: Web App Manifest not parsed by Chrome Dev Tools

这篇关于当我提示“添加到主屏幕"时,Chrome无法识别我的manifest.json.横幅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆