How to use adaptive launcher icons with a progressive web app
Asked Answered
B

1

25

The new Android 8.0 standard for adaptive launcher icons leaves my PWA's icon in a white box or circle, depending on what icon shape is set on a user's device. I would like to include an adaptive icon with my PWA but am not finding any documentation around this at all.

Is there a way to include meta and different icons for different shapes or a way to include the necessary layers for an adaptive icon?

Bot answered 30/11, 2018 at 20:28 Comment(2)
Were you ever able to solve this?Bukharin
No. However, I haven't looked into it again since posting.Bot
T
1

There is a standard to support what you need. Icon Masks in PWA.

Basically, you will have to add "purpose": "maskable" to your icon definition in the manifest.

It's still a work-in-progress (Chrome bug). Firefox for android already supports it.

Trickish answered 2/9, 2019 at 23:30 Comment(1)
Curiously, this works for me on Chrome, but not on Firefox.Lucier

© 2022 - 2024 — McMap. All rights reserved.