Search code examples
androidtransparencyfavicon

Favicon doesnt show transparency on android


I have a website, and when people visit it on android devices they can 'add shortcut on home screen', which places the favicon on the home screen.

The problem is that the image looses its transparency and whats supposed to be transparent becomes white. I've checked the image, its transparent. And the transparency is properly displayed in the browser tab on laptops.

I'm displaying the favicon by putting a

<link rel="icon" type="image/png" href="path/theicon.png">

in the header.

How can I make the favicon display with transparency on android devices?


Solution

  • Some launcher don't support transparent icon. they change transparent part to white (like MI launcher)