baustelle-pwa/manifest.webmanifest
Eduard Wisch bb02fb247e
All checks were successful
Deploy baustelle-pwa / deploy (push) Successful in 1s
fix: share_target action als absolute URL (Android-Fix)
Laut martin.hjartmyr.se/articles/pwa-web-share-target-android/ ist
relativer action-Pfad ein bekannter Android-Stolperstein — der Share
Sheet zeigt die PWA nicht an obwohl das Manifest korrekt aussieht.

Fix: action auf volle URL setzen
(https://awl.data-it-solution.de/custom/baustelle/share.html).

Außerdem in params.files: explizite MIME-Types zusätzlich zu image/*
(image/jpeg, png, webp) — Chrome Android braucht MIME + Extension.

Service Worker v8 damit das neue Manifest geholt wird.

WICHTIG: PWA muss nach diesem Update komplett deinstalliert und neu
installiert werden, damit Android den Share-Target-Eintrag neu
registriert (Android cached hier sehr aggressiv).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
[deploy]
2026-04-09 01:15:46 +02:00

30 lines
1.1 KiB
JSON

{
"name": "Baustelle — Bericht-Doku",
"short_name": "Baustelle",
"description": "Mobile Doku für Baustellen — Fotos, Sprachnotizen, Skizzen",
"start_url": "./",
"scope": "./",
"display": "standalone",
"orientation": "portrait",
"background_color": "#1a1a1f",
"theme_color": "#1a1a1f",
"lang": "de",
"icons": [
{ "src": "icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any maskable" },
{ "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }
],
"share_target": {
"action": "https://awl.data-it-solution.de/custom/baustelle/share.html",
"method": "POST",
"enctype": "multipart/form-data",
"params": {
"title": "title",
"text": "text",
"url": "url",
"files": [
{ "name": "photos", "accept": ["image/jpeg", "image/png", "image/webp", "image/*"] },
{ "name": "file", "accept": ["image/jpeg", "image/png", "image/webp", "image/*"] }
]
}
}
}