manifest does not contain a suitable icon
See original GitHub issueProvide the steps to reproduce
- Run LH on https://tietracker.com
What is the current behavior?
Lighthouse displays following error regarding the manifest:
Manifest does not contain a suitable icon - PNG, SVG or WebP format of at least 144 px is required, the sizes attribute must be set, and the purpose attribute, if set, must include “any” or “maskable”.
No supplied icon is at least 144 px square in PNG, SVG or WebP format
Manifest which looks like following and does seem to match expected above description:
{
"name": "Tie Tracker",
"short_name": "Tie Tracker",
"icons": [
{
"purpose": "maskable",
"src": "/assets/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"purpose": "maskable",
"src": "/assets/favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"display": "standalone",
"theme_color": "#230f29",
"background_color": "#ffffff"
}
What is the expected behavior?
Either it is an error and the icons of the manifest should be recognized as valid or, the description should be improved to display what’s missing.
Environment Information
- Chrome version: v91
Screenshot
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
PWA "Manifest does not contain a suitable icon" - Stack Overflow
I'm building a progressive web app. Chrome says it has icon problems: "Manifest does not include a suitable icon" and "No supplied icon...
Read more >Manifest does not contain a suitable icon - WordPress.org
Here is the error that I get: `“Manifest does not contain a suitable icon – PNG, SVG, or WebP format of at least...
Read more >Manifest doesn't have a maskable icon - Chrome Developers
The icons array must contain one object with a purpose property, and the value of that purpose property must include maskable . Caution....
Read more >Manifest does not contain a suitable icon - Ionic Forum
Manifest does not contain a suitable icon - PNG, SVG or WebP format of at least 144 px is required, the sizes attribute...
Read more >Pwa "Manifest Does Not Contain A Suitable Icon" - ADocLib
A typical manifest file includes the app name the icons the app flag about://flags/#mobilepwainstallusebottomsheet flag must be. Exception or Error. Manifest ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue (see chromium bug linked above) is now fixed at head. It should appear in Chrome 93. I split the message into two separate warnings (one for “you only have
maskable
icons”, one for “avoid havingany maskable
icons”)So setting the pattern of
"any maskable"
is discouraged but not required. Unfortunatley, the difference between “must not” and “should not” is a bit subtle in the applications panel message.The Lighthouse message is now correct, but we removed the part discouraging
"any maskable"
https://github.com/GoogleChrome/lighthouse/pull/12678#discussion_r655596372.gelnrob@ is open to changing the message, so we can reevaluate what we want to include if that happens.