pwa-module icon indicating copy to clipboard operation
pwa-module copied to clipboard

Custom iOS (safari) icon

Open thegoldgoat opened this issue 4 years ago • 7 comments

What problem does this feature solve?

Lets say my app icon has no background, then Safari would apply a default black background when adding to the home screen - but I’d rather have a white one

What does the proposed changes look like?

A way to use a custom icon for Safari only

This feature request is available on Nuxt community (#c236)

thegoldgoat avatar Aug 10 '20 20:08 thegoldgoat

In iOS if you install the app that has a transparent background, apple will use black as the background, which is ugly.

charlie0077 avatar Nov 09 '20 01:11 charlie0077

I am curious how do you work around this black background issue in iphone.

charlie0077 avatar Nov 09 '20 01:11 charlie0077

You can add apple-touch-icon meta in nuxt.config.js. It will overwrite the transparent icon on iOS

export default {
  head: {
    link: [
      { rel:"apple-touch-icon", sizes:"128x128", href:"apple-icon.png" }
    ]
  }
// ....
}

farnabaz avatar Mar 04 '21 17:03 farnabaz

You can add apple-touch-icon meta in nuxt.config.js. It will overwrite the transparent icon on iOS

That sounds great! Is this a new feature or something? At least I think that wasn’t mentioned in the docs at the time

thegoldgoat avatar Mar 04 '21 19:03 thegoldgoat

No this isn't new feature. This can be used on any Nuxt projects (with or without PWA module). PWA module does the same thing under the hood.

Checkout Nuxt documentation

farnabaz avatar Mar 05 '21 09:03 farnabaz

Oh now I see! What I meant was PWA module's documentation, I think it would be much clearer if a redundant information like this was also mentioned in PWA's documentation

thegoldgoat avatar Mar 05 '21 18:03 thegoldgoat

Should the overwrite work for iOS splash/launch screens? - #443

petrtichy avatar Mar 25 '21 17:03 petrtichy