我的清单上有2个错误,我也不知道为什么。
谢谢。
第一个错误是:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have a PNG icon of at least 192p
第二个错误是
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px.
A themed splash screen ensures a high-quality experience when users launch your app from their homescreens. Learn more.
清单的我的php代码
$ manifest = [ “ dir” =>“ ltr”, “ lang” =>“ {$ code_langue}”, “ name” =>“ {$ siteName}”, “ short_name” =>“ {$ shortName}”, “ description” =>“ {$ description}”, “ scope” =>“ {$ scope}”, “ display” =>“独立”, “ start_url” =>“ {$ scope}”, “ theme_color” =>“#317EFB”, “ orientation” =>“ any”, “ background_color” =>“ #fff”, “ related_applications” =>“”, “ prefer_related_applications” =>“假”, “屏幕截图” => [], “ generated” =>“ true”, “图标” => [ “ src” =>“ {$ image_512}”, “ sizes” =>“ 192x192 512x512”, “ type” =>“ image / png” ], “ src” =>“ {$ image_512}”, “ sizes” =>“ 512x5122”, “ type” =>“ image / png”];
生成了json
{
"dir": "ltr","lang": "en","name": "Domain","short_name": "Domain","description": "Domain","scope": "https://mydomain/demo/index.php","display": "standalone","start_url": "https://mydomain/demo/index.php","theme_color": "#317EFB","orientation": "any","background_color": "#fff","related_applications": "","prefer_related_applications": "true","screenshots": [],"generated": "true","icons": {
"src": "https://dmydomain/demo/images/logos/manifest/logo_512.png","sizes": "192x192 512x512","type": "image/png"
},"src": "https://mydomain/demo/images/logos/manifest/logo_512.png","sizes": "512x5122","type": "image/png"
}