fix: share_target action als absolute URL (Android-Fix)
All checks were successful
Deploy baustelle-pwa / deploy (push) Successful in 1s
All checks were successful
Deploy baustelle-pwa / deploy (push) Successful in 1s
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]
This commit is contained in:
parent
91a6560f7e
commit
bb02fb247e
2 changed files with 4 additions and 5 deletions
|
|
@ -14,7 +14,7 @@
|
|||
{ "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }
|
||||
],
|
||||
"share_target": {
|
||||
"action": "./share.html",
|
||||
"action": "https://awl.data-it-solution.de/custom/baustelle/share.html",
|
||||
"method": "POST",
|
||||
"enctype": "multipart/form-data",
|
||||
"params": {
|
||||
|
|
@ -22,9 +22,8 @@
|
|||
"text": "text",
|
||||
"url": "url",
|
||||
"files": [
|
||||
{ "name": "photos", "accept": ["image/*"] },
|
||||
{ "name": "file", "accept": ["image/*"] },
|
||||
{ "name": "files", "accept": ["image/*"] }
|
||||
{ "name": "photos", "accept": ["image/jpeg", "image/png", "image/webp", "image/*"] },
|
||||
{ "name": "file", "accept": ["image/jpeg", "image/png", "image/webp", "image/*"] }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
sw.js
2
sw.js
|
|
@ -4,7 +4,7 @@
|
|||
* - API-Calls: network-first, kein offline-cache (da auth-pflichtig)
|
||||
*/
|
||||
|
||||
const CACHE = 'baustelle-v7';
|
||||
const CACHE = 'baustelle-v8';
|
||||
const SHELL = [
|
||||
'./',
|
||||
'./index.html',
|
||||
|
|
|
|||
Loading…
Reference in a new issue