Defined App Image Icon isn't used

Created on 29 June 2023, about 2 years ago
Updated 21 September 2023, almost 2 years ago

Problem/Motivation

Currently, if defining an image as the application icon, it doesn't get used anywhere. Instead, the app icons stored in /assets are put into the manifest.json and used. Meaning, the 'image' setting doesn't even have any impact on the app icon.

Steps to reproduce

  • Go to '/admin/config/services/pwa/manifest', upload an icon and save
  • Flush all cashes
  • Access your manifest.json (usually under '/manifest.json')

The icons from the 'assets' folder are still being used:

"icons": [
{
"src": "https://my.site/modules/custom/pwa/assets/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "https://my.site/modules/custom/pwa/assets/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "https://my.site/modules/custom/pwa/assets/icon-144.png",
"sizes": "144x144",
"purpose": "any maskable"
}
],

Proposed resolution

Make the icon setting actually functional

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024