Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favicons generated by gatsby-plugin-manifest aren't recognized by iOS Safari #10770

Closed
kripod opened this issue Jan 2, 2019 · 4 comments
Closed
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@kripod
Copy link
Contributor

kripod commented Jan 2, 2019

Description

When using gatsby-plugin-favicon, iOS Safari recognizes the site's favicon and uses it for bookmarking and adding the page to the home screen.

Steps to reproduce

  1. yarn add gatsby-plugin-manifest
  2. Add corresponding entry to gatsby-config.js

Demo: https://5c2c104adaf1cb0008d6975f--schdesign.netlify.com/
Source code: https://github.com/simonyiszk/schdesign-web/tree/bc38c14281aca0757fb06288a67f1f4de7e7143f

Expected result

Icons generated by gatsby-plugin-manifest should be recognizable by iOS Safari.

Environment

gatsby: ^2.0.81 => 2.0.81
gatsby-plugin-manifest: ^2.0.13 => 2.0.13
gatsby-plugin-offline: ^2.0.20 => 2.0.20
@LekoArts
Copy link
Contributor

LekoArts commented Jan 2, 2019

@LekoArts LekoArts closed this as completed Jan 2, 2019
@kripod
Copy link
Contributor Author

kripod commented Jan 2, 2019

@LekoArts Thank you for answering! Actually, I thought it was a bug because I'm on iOS 12.1.3, which is over 11.3 (mentioned by the readme of gatsby-plugin-manifest).

@LekoArts
Copy link
Contributor

LekoArts commented Jan 2, 2019

I think the note in the README is kind of wrong. Apple didn't implement the complete spec to my knowledge but only some parts (e.g. the service worker things) and it hasn't changed since 11.3
So you still need the apple-touch-icon until they also support the icons declared in the manifest file.

@LekoArts LekoArts added the type: question or discussion Issue discussing or asking a question about Gatsby label Jan 2, 2019
@kripod
Copy link
Contributor Author

kripod commented Jan 2, 2019

Okay, then I would like to suggest renaming the flag from legacy to iOS, and setting it to true by default, as it covers a very large share of the mobile browser market.

wardpeet pushed a commit that referenced this issue Jan 25, 2019
#7256 added a `legacy` flag (defaulting to `false`) to include the apple-touch-icons. However, the assumption was wrong that iOS supports the icons from the webmanifest - they don't. That's why apple-touch-icons are still needed and the default state of `legacy` should be set to `true`.

I made those necessary changes.

Fixes #10770
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants