Chrome's install prompt needs 192 and 512 PNG icons (SVG-only often isn't enough, especially on Android). Add them and reference them in the manifest (any + maskable). offline.js captures beforeinstallprompt and shows an 'Installér app' button that triggers the native prompt, and clears it on appinstalled. Bump SW cache to v2 so the new manifest/icons take effect.
18 lines
702 B
JSON
18 lines
702 B
JSON
{
|
|
"name": "Citti Indkøbsseddel",
|
|
"short_name": "Citti",
|
|
"description": "Indkøbsseddel og Lübeck-tilbud — virker offline i butikken.",
|
|
"start_url": "/",
|
|
"scope": "/",
|
|
"display": "standalone",
|
|
"orientation": "portrait",
|
|
"background_color": "#f5f2ed",
|
|
"theme_color": "#c84b2f",
|
|
"icons": [
|
|
{ "src": "/static/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
|
|
{ "src": "/static/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
|
|
{ "src": "/static/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
|
|
{ "src": "/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" }
|
|
]
|
|
}
|