[–] [S] 2 points 2 weeks ago (2 children)

Thanks for the reply! Just one clarification: those tags in index.html end up in the of the game iframe (.perchance.org/), and iOS "Add to Home Screen" reads the icon of the top-level document (perchance.org/), which has the platform's default apple-touch-icon.png. The frame can't touch the top document's head (cross-origin — SecurityError), so the snippet changes the icon inside the frame but the Home Screen icon stays the default cube. I verified this: Share sheet picks up og:image fine, Home Screen doesn't.

So the snippet doesn't solve it — only the platform can, by rendering the generator's $meta.image (or a new $meta.favicon, per your suggestion, which I support) as the apple-touch-icon of the generator's top-level page, with fallback to the default. That would fix it for all generators at once.

  • source
  • parent
  • context
  •  

    Hi! When adding a generator page to the iOS Home Screen ("Add to Home Screen"), the icon is always the default site icon, even though the generator has a custom $meta.image (which correctly shows up in the share sheet via og:image). Could you please use the generator's $meta.image as the apple-touch-icon (and favicon) for generator pages, falling back to the default when a generator has no custom image? Thanks!