Reputation: 101
I am using the code mention below for the icon of the web app
{
"src":"image/logo.png",
"sizes":"512x512",
"type":"image/png",
"purpose":"any"
}
]
but in chrome I am getting the error:
Manifest does not contain a suitable icon.....
Why is it happening and how can I solve it..?
Hope for help soon.
Thanks In Advance.
Upvotes: 0
Views: 1481
Reputation: 3893
You need at least one PNG file of 144x144. But honestly you need a about 100 to satisfy all the possible use cases.
That is one reason why I create PWA Starter. It generates your manifest file, icons, starter service worker and has some resources too.
You might have an image that has some corrupt bits or it might now have the right Content-Type header being served, etc.
Upvotes: 3