我正在尝试使用文档https://developers.google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android为我的客户端网站启用本机应用安装横幅。
我看到的错误是App banner not shown: manifest could not be fetched, is empty, or could not be parsed
以下是我的manifest.json
{
"name": "PayPal",
"short_name": "PayPal",
"start_url": "https://www.paypal.com/webapps/mpp/home",
"display": "standalone",
"icons": [{
"src": "https://www.paypalobjects.com/digitalassets/c/website/logo/monogram/pp_fc_mg.png",
"sizes": "48x48",
"type": "image/png"
}, {
"src": "https://www.paypalobjects.com/digitalassets/c/website/logo/monogram/pp_fc_mg_2x.png",
"sizes": "96x96",
"type": "image/png"
}, {
"src": "https://www.paypalobjects.com/digitalassets/c/website/logo/monogram/pp_fc_mg_2x.png",
"sizes": "144x144",
"type": "image/png"
}],
"prefer_related_applications": true,
"related_applications": [{
"platform": "play",
"id": "com.paypal.android.p2pmobile"
}]
}
查看n / w控制台,获取manifest.json
。看到服务器200的响应。它不是空的和有效的JSON。
有些人可以帮我指出这个问题。感谢。