Bug 256429 - Add to home screen falls back to system default icon
Summary: Add to home screen falls back to system default icon
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-07 06:59 PDT by fesexe8648
Modified: 2023-12-11 11:56 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fesexe8648 2023-05-07 06:59:00 PDT
Providing a manifest icon with sizes 512x512 type image/png and no purpose set.

The icon is no longer used when adding to home screen, instead I get the new system default icon (first letter of the app name).

I also include other icons and formats in the manifest icon stack both png and svg, maskable and sizes any (if something of that makes it break?)

It worked up until I updated to iOS 16.4.

The web app validates in Chrome lighthouse and is installable / adds to homescreen on other platforms with Chrome and Firefox.
Comment 1 Radar WebKit Bug Importer 2023-05-14 06:59:19 PDT
<rdar://problem/109321062>
Comment 2 fesexe8648 2023-05-14 07:08:39 PDT
Update. Removing the SVG icons in the manifest made it work again, and the PNG is added to home screen. So the issue seem to be when a SVG is included in the manifest, no icon is picked, not even a valid PNG, and it chooses the default system icon.
Comment 3 Kevin Turner 2023-12-11 11:56:01 PST
Hi! Would you be able to include more details? 
e.g. the application manifest in use, the icon(s) you're having issues with.
If publicly accessible, including the URL of the web app would be great. If not, even a small reproduction project would be helpful for us to debug this particular configuration. Thank you!