【发布时间】:2018-12-16 05:04:44
【问题描述】:
我是第一次向我的网络应用程序添加清单。我的清单在 manifest-validator.appspot.com 上成功验证。 Chrome Application->Service Worker 窗口显示 service worker 注册成功。我可以在我的 iPhone 上“保存到主屏幕”。但是当我打开保存到主屏幕的图标时,我得到一个空白屏幕。
这是我的 myApp_manifest.json 文件:
{
"short_name": "myApp",
"name": "myAppLongName",
"icons": [
{
"src": "images/app-images/myIcon-512-green_512px.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "images/app-images/myIcon-512-green_192px.png",
"type": "image/png",
"sizes": "192x192"
}
],
"start_url": "/?utm_source=progressive_web_app",
"background_color": "#63aed5",
"display": "standalone",
"scope": "/",
"theme_color": "#3367D6"
}
我错过了什么?
【问题讨论】:
标签: ios web-applications progressive-web-apps manifest.json