Which application icons and sizes are required for a progressive web app (PWA)? For example, should I include Apple icons if Safari doesn\'t support PWAs?
It seems like
According to the World Wide Web Consortium's (W3C) App Manifest specification for Progressive Web Apps (8.7 icons member):
MDN Web Docs does not list required sizes or formats either, but adds:
The sizes value is a "space separated list of dimensions" for an icon
The type value is optional, but aids the user agent in selecting the most appropriate icon for its use.
Using the rules above, the application can provide conditions on the use of certain icons, such as forcing the PNG for a specific resolution and falling back to SVG for any unspecified sizes and allow the user agent to select the best choice. The benefit of this system is forward compatibility with user agents that have not yet been announced.
Manifest Icons Example: (based on W3C spec cited above)
{
"icons": [
{
"src": "assets/brand_small.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "icon/brand.ico",
"sizes": "96x96 128x128 256x256"
},
{
"src": "icon/brand_large.svg",
"sizes": "257x257"
}]
}
If you want to include a complete set of icons for Android:
icon-72x72
icon-96x96
icon-128x128
icon-144x144
icon-152x152
icon-192x192
icon-384x384
icon-512x512
There is some helpful tools like https://app-manifest.firebaseapp.com/, to create icons.
For iOS, you will need:
icon-120x120
icon-180x180
With square background (can't be transparent background). A good repository for references at https://github.com/gokulkrishh/awesome-meta-and-manifest
As per Google Developers
icons must include a 192px and a 512px sized icons
Here is our blog on the same.