Invalid error "Does not provide a valid apple-touch-icon" when rel="apple-touch-icon icon"
See original GitHub issueRemember <meta rel="shortcut icon" ...
where icon is a fallback when shortcut not supported.
I guess same can say for <meta rel="apple-touch-icon icon" ...
and it should display this error:
meaning for iOS would capture as apple-touch-icon and for other devices as icon.
I haven’t tested it in iOS, but I think it should work so.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Does not provide a valid apple-touch-icon - Chrome Developers
When iOS Safari users add Progressive Web Apps (PWAs) to their home screens, the icon that appears is called the Apple touch icon....
Read more >Apple Touch icon for websites - Stack Overflow
Minimalist solution - Recommended. A common practice is to create a single 180x180 icon, which is the highest expected resolution, ...
Read more >Configuring Web Applications - Apple Developer
If no icons are specified using a link element, the website root directory is searched for icons with the apple-touch-icon... prefix.
Read more >The External Resource Link element - HTML - MDN Web Docs
It must be present only if the rel contains a value of icon or a non-standard type such as Apple's apple-touch-icon . It...
Read more >While integrating with jenkins getting these errors - SonarQube
... rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"><link rel="icon" type="image/x-icon" ...
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
Hey @laukstein, thank you for the follow up! Unfortunately, it looks like
apple-touch-icon
andicon
only work separately. This is a link to MDN docs that covers the icon/apple-touch-icon LinkType differences well. But, I did go ahead and run an example web app to test on iOS to see it play out a little better.<link rel=”apple-touch-icon”...>
doesn’t trigger the favicon (since the “icon” rel isn’t present). But, the iOS icon shows fine as expected.<link rel=”apple-touch-icon icon” ….>
Here, it looks like the favicon works fine, but iOS doesn’t correctly take in the icon, since “icon” is in the rel. So, it opts for an image of the actual page.So, unfortunately it looks like iOS would require its own
<link rel=""...>
declaration withouticon
in it. Your best bet would be to have both<link rel="icon"...>
and<link rel="apple-touch-icon"...>"
to ensure you cover all your PWA bases 😃@laukstein I’m actually not sure! Although, if you end up opening a bug with them (or if you find one), feel free to comment here with a link. Would be an interesting thing to follow 🙂