47
loading...
This website collects cookies to deliver better user experience
monochrome
, any
ormaskable
or a combination of these three values.Declaring an icon with purpose "any maskable" is discouraged. It is likely to look incorrect on some platforms due to too much or too little padding.
{
…
"icons": [
…
{
"src": "icon1.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any"
},
{
"src": "icon2.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any maskable" // <-- triggers the warning
},
…
],
…
}
maskable
if one exists in your manifestany
if there is one in your manifestany
if there is one in your manifest.apple-touch-icon
(home screen icon) and apple-touch-startup-image
meta tags (splash screen)any maskable
.{
"src": "white-icon-on-gradient-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
theme_color
we set in the manifest, it would be acceptable if we're willing to be a bit forgiving with the desktop look.{
"src": "white-icon-on-transparent-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
{
"src": "solid-icon-on-transparent-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
maskable
and crops it awfully. If I added more padding around my icon, then I'll be able to make it look okay on my Android home screen. But then it would be really small on desktop/splash screens.any maskable
is almost always a bad idea, hence the warning displayed by Chrome in your web app manifest. {
"src": "solid-icon-on-transparent-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "white-icon-on-transparent-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "white-icon-on-gradient-background.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
any
and a transparent background. And another with the purpose maskable
, a solid color as background and extra padding.