我添加了元信息,所以它应该被固定在iOS和安卓主屏幕上,并且应该作为一个web应用程序启动。我使用这一个教程来添加添加到主屏幕标注ATH,位在安卓图标名称不显示-它需要页面标题,而不是在元标签的短名称。如果有人遇到这个问题,请告诉我在哪里可以解决它。谢谢
我的头
meta(name='apple-mobile-web-app-capable', content='yes')
meta(name='mobile-web-app-capable', content='yes')
meta(name='apple-mobile-web-app-title', content='Add to Home')
link(rel='shortcut icon', sizes='16x16', href='../images/ath-app-icon.jpg')
link(rel='shortcut icon', sizes='196x196', href='../images/ath-app-icon.jpg')
link(rel='apple-touch-icon-precomposed', href='../images/ath-app-icon.jpg')发布于 2017-04-20 20:46:41
为此,您必须将您的短名称写在您的Manifest.Json文件short_name=“您的短名称”,然后它将出现在您添加到主屏幕
{
"name": "Any Name",
"short_name": "Your Short name",
"icons": [
{
"src": "120x120.png",
"type": "image/png",
"sizes": "128x128"
},
],
"start_url": "anyUrl?launcher=true",
"scope": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#aac73c ",
"theme_color": "#63528a"
}
https://stackoverflow.com/questions/41921659
复制相似问题