Closed tr1s closed 5 years ago
mstiles for windows
I'd guess because no one uses these phones anymore. No one ever asked for that.
android-chrome icons
You already have those, have a look into the generated manifest.webmanifest
file.
Should I be using this in conjunction with React Helmet?
You can do that without problems, however you'd really only need to add the windows phone stuff, all other things are handled by the plugin.
@LekoArts thanks for your response.
Yeah that's fair about the mstiles.
I did look into the generated manifest.webmanifest
file. I only see "icons" and not "android-chrome" icons like in the spec I referenced. I wasn't sure if android by default just uses these by default, but you're saying they do, essentially?
Also, when I'm testing the PWA on iPhone, iPhone has a big board radius on their icons, and Android's icons I believe are circles?
Is there anyway to upload separate icons for iPhone, Android, and Web?
It seems there's an inherent issue with using only 1 icon for multiple different devices / platforms.
We have a square icon, which shows up properly on web, but obviously looks a bit truncated on an iOS app, which is slightly rounded. How do I deal with this? Can I at this point or no?
Funny enough, Android seems to have had some padding added, done by default? Whereas iOS has some cropping of the corners, so no kind of automatic fixings.
@tr1s You really need to spend some time familiarizing yourself with the web app manifest spec. It's supported by most modern mobile browsers and some desktop browsers.
The defaults for this plugin are "sane" in that they work generally and probably won't cause issues...but they aren't perfect cause there's no way to know what your icon looks like. For instance, part of the spec is that you can designate how the platform handles icon masking. Android icons can be square, round, rounded squares, squircles, or un-masked...it's all the same image, the platform just respects what is specified in the manifest. If memory serves the manifest default, if unspecified, is to allow icon masking...which is what you're seeing in the second image. Android seems to have guessed that your icon shouldn't be masked and added the padding. not sure why.
Checkout the docs page for the plugin, there are several links to the spec and other info pages. There's a lot of options to customize how icons are rendered and what platforms use them. Let me know if you have any more questions, happy to help.
Marking this as answered and closing. Thanks!
Summary
I know
gatsby-plugin-manifest
generates icons, but are they specifically only used for the manifest file and apple-touch-icons? How come they don't generatemstiles
for windows orandroid-chrome
icons?Should I be using this in conjunction with React Helmet?
Is there anything I should be worried about when using meta/link tags in React Helmet for
android-chrome
/mstiles
conjunction withgatsby-plugin-manifest
and their auto favicon generation?Thank you, some more clarification will be very helpful!
Relevant information
These are the only things it outputs for me, with one icon given to
gatsby-plugin-manifest
. I am only using React Helmet for html lang, title, and description in this example. But I'll be using it on a very big work project soon and I want to understand it full before I commit to production.Resource of all the favicon types: https://realfavicongenerator.net/faq
Environment (if relevant)
File contents (if changed)