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:
Bkk1234 committed 2026-11-24 15:03:47 +07:00
1 parent 634dc3ae3c
commit 084eb7dd8e
7 files changed
+38 -5

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ PUBLISH_PUSH=0 node server/publish.mjs # เขียน+commit แต่ไ
6. **ปุ่ม/ลิงก์ต้องมีพื้นที่กด ≥ 44×44px** และมี `aria-label` เมื่อเป็นไอคอนเดี่ยว
7. **แก้ `sw.js` หรือรายการ `PRECACHE` → bump เวอร์ชันด้วย `npm run version`** (แก้ `VERSION` ใน `sw.js` + `<meta name="app-version">` ใน `index.html` พร้อมกัน) · `npm run check` มี `bump-version.mjs --check` ตรวจว่าไม่หลุดกัน · แก้ HTML/CSS/JS/JSON เนื้อหาอย่างเดียวไม่ต้อง bump (network-first จัดการ)
8. **PWA boot บน plain HTTP ไม่ได้** — ต้อง HTTPS หรือ localhost
· เกณฑ์ติดตั้งของ Chrome/Android: manifest parse ผ่าน + ไอคอน PNG 192/512(+maskable) + `screenshots` + service worker คุมหน้า + cert ถูกต้อง — ตรวจด้วย CDP `Page.getInstallabilityErrors` ต้องได้ `[]`
9. การเปลี่ยนคำ/ค่าออกแบบ → อัปเดต `DESIGN.md` และ `README.md` (เครดิต) ด้วยในคอมมิตเดียวกัน
## แผนที่ไฟล์