manifest
Rules: 5
manifest/document
The web app manifest does not parse
manifest/document/invalid · error · score 7.2 · site
A manifest that is not valid JSON is ignored by browsers, so the site cannot be installed as an app and loses its name and icons on home screens.
Fix
Serve the manifest as one JSON object.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
resources.manifest
manifest/fields
The web app manifest lacks members installation needs
manifest/fields/missing · warning · score 5.0 · site
Without name, start_url, display and icons browsers will not offer to install the site, so visitors get no home-screen app. Only manifests that parse are judged.
Fix
Add name, start_url, display, icons to the manifest.
Off by default; a group that runs manifest turns it on.
References
For rule authors
Reads
resources.manifest
manifest/icons
The manifest icons lack required sizes or a maskable icon
manifest/icons/missing · warning · score 4.6 · site
Without 192×192 and 512×512 icons the installed app gets a blurry or default icon, and without a maskable one Android crops the logo badly. Only manifests that parse are judged.
Fix
List a 192×192 and a 512×512 icon, and one with purpose: maskable whose safe zone holds the logo.
Off by default; a group that runs manifest turns it on.
References
For rule authors
Reads
resources.manifest
manifest/link
Some pages do not link the web app manifest
manifest/link/missing · warning · score 4.2 · group
A visitor who lands on a page without the manifest link cannot install the app from there. Only groups where some HTML pages link a manifest and others do not are flagged.
Fix
Link the manifest with <link rel=manifest> from every page, so the app installs from wherever a visitor lands.
Off by default; a group that runs manifest turns it on.
References
For rule authors
Reads
html.head.links
manifest/serving
The manifest is served or declared wrongly
manifest/serving/invalid · warning · score 5.4 · site
A manifest with the wrong content type, no id, or a start URL outside its scope or origin can be rejected or give the installed app the wrong identity.
Fix
Serve the manifest as application/manifest+json with an id, and a start_url inside a scope on the site’s own origin.
Off by default; a group that runs manifest turns it on.
References
For rule authors
Reads
resources.manifest