question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid error "Does not provide a valid apple-touch-icon" when rel="apple-touch-icon icon"

See original GitHub issue

Remember <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:

grabilla em9116

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:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
adrianaixbacommented, Oct 20, 2020

Hey @laukstein, thank you for the follow up! Unfortunately, it looks like apple-touch-icon and icon 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. apple-touch-icon

<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. apple-touch-icon-icon

So, unfortunately it looks like iOS would require its own <link rel=""...> declaration without icon 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 😃

0reactions
adrianaixbacommented, Oct 22, 2020

@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 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found