feat(pwa): meet Android install-quality criteria (screenshots, absolute scope)
Samsung/Chrome on Android 16 refused to offer installation. manifest.json now has
absolute start_url/scope ('/'), prefer_related_applications:false, two screenshots
(narrow 1080x1920 + wide 1920x1080 captured from production) and app shortcuts.
Verified with CDP: Page.getInstallabilityErrors -> [], Page.getAppManifest ->
errors [] with 2 screenshots / 2 shortcuts, screenshots served as image/png, service
worker controlling the page. VERSION bumped to 2026.11.24.4.
This commit is contained in:
1 parent
634dc3ae3c
commit
084eb7dd8e
7 files changed
+38
-5
No files matched your search
+33
-2
@@ -5,14 +5,15 @@
|
||||
"description": "รายชื่อโปรเจคอดิเรกของเรา เลือกโปรเจคที่อยากดูได้เลย",
|
||||
"lang": "th",
|
||||
"dir": "ltr",
|
||||
"start_url": "./",
|
||||
"scope": "./",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"display_override": ["standalone", "minimal-ui"],
|
||||
"orientation": "any",
|
||||
"theme_color": "#8A4722",
|
||||
"background_color": "#FFFFFF",
|
||||
"categories": ["productivity", "entertainment"],
|
||||
"prefer_related_applications": false,
|
||||
"icons": [
|
||||
{
|
||||
"src": "icons/icon-192.png",
|
||||
@@ -32,5 +33,35 @@
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"screenshots": [
|
||||
{
|
||||
"src": "icons/screenshot-mobile.png",
|
||||
"sizes": "1080x1920",
|
||||
"type": "image/png",
|
||||
"form_factor": "narrow",
|
||||
"label": "หน้ารายชื่อโปรเจค พร้อมช่องค้นหา"
|
||||
},
|
||||
{
|
||||
"src": "icons/screenshot-wide.png",
|
||||
"sizes": "1920x1080",
|
||||
"type": "image/png",
|
||||
"form_factor": "wide",
|
||||
"label": "หน้ารายชื่อโปรเจคบนจอกว้าง"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "หน้าแรก",
|
||||
"short_name": "หน้าแรก",
|
||||
"url": "/#/",
|
||||
"description": "กลับไปหน้ารายชื่อโปรเจค"
|
||||
},
|
||||
{
|
||||
"name": "แก้ไขรายการ",
|
||||
"short_name": "แก้ไข",
|
||||
"url": "/#/admin",
|
||||
"description": "เปิดหน้าหลังบ้าน"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user