Files
hobbypj-contents/manifest.json
T
Bkk1234 ddec75b99e feat(pwa): pass Samsung Internet install criteria
- index.html: legacy metas Samsung Internet/older Android require to treat the page as
  installable (mobile-web-app-capable, apple-mobile-web-app-*, application-name)
- manifest.json: icons at 48/72/96/144/192/512 plus maskable 192/512 (every file's real
  pixel size matches the declared sizes), related_applications: []
- icons: derived the new sizes from the existing artwork (PIL, LANCZOS)
- README: document the Samsung-specific requirement
- VERSION bumped to 2026.11.24.5

Verified with CDP (Chrome + SamsungBrowser UA, 360x800): installabilityErrors [],
all 8 icons load with matching dimensions, screenshots served as image/png, no
horizontal overflow, service worker controlling the page.
2026-11-24 15:06:32 +07:00

99 lines
2.6 KiB
JSON

{
"id": "/",
"name": "โปรเจคอดิเรกของเรา",
"short_name": "โปรเจคอดิเรก",
"description": "รายชื่อโปรเจคอดิเรกของเรา เลือกโปรเจคที่อยากดูได้เลย",
"lang": "th",
"dir": "ltr",
"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,
"related_applications": [],
"icons": [
{
"src": "icons/icon-48.png",
"sizes": "48x48",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-72.png",
"sizes": "72x72",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-96.png",
"sizes": "96x96",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "icons/icon-192-maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/icon-512-maskable.png",
"sizes": "512x512",
"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": "เปิดหน้าหลังบ้าน"
}
]
}