Skip to content

vtrc-application-front — Distribution Flow

บทนี้ (branch: master) อธิบายเส้นทางติดตั้งจริงจากหน้า static ไปยัง IPA / Play Store


Flow รวม

ผู้ใช้เปิดหน้า download center
  │  (โฮสต์ที่ production: vtrc.redcross.or.th/adn/ — UNVERIFIED mapping ตรง repo)

index.html โหลด + gtag

คลิกปุ่ม → getUrl()

  ├─ iOS ──────────────────────────────────────────────┐
  │  itms-services://...?url=.../adn/VTRC.plist         │
  │  OS ดึง plist → ดาวน์โหลด VTRC.ipa จาก URL ใน plist │
  │  ผู้ใช้ต้อง Trust "THE THAI RED CROSS SOCIETY"      │
  │  (ข้อความใน #app-manual — index.html:54-61)         │
  │                                                      │
  ├─ Android ────────────────────────────────────────────┤
  │  → Play Store com.redcross.vtrc                      │
  │                                                      │
  └─ Desktop ────────────────────────────────────────────┘
     → https://vtrc.redcross.or.th/login

iOS enterprise / OTA chain

ขั้นArtifactCitation
1Manifest URL ใน getUrlindex.html:102
2VTRC.plist assets url → IPAVTRC.plist:14
3Binary ใน git = VTRC.ipa ที่ rootgit ls-files
4คู่มือ PDFstorage/pdf/manual.pdf ลิงก์จาก index.html:64

หมายเหตุ: bundle-version ใน plist เป็น 1.0 (VTRC.plist:22) ในขณะที่ UI แสดง 1.9.12 (index.html:51) — ไม่ sync กันใน source ที่ commit

มี meta refresh แบบ auto itms ที่ถูก comment ปิด (index.html:10) — ปัจจุบันต้องกดปุ่มเอง


สิ่งที่ commit เป็น binary

FileSizeทำไมเป็นปัญหาDebt
VTRC.ipa12,855,060 bytes (~12.3 MB)binary ใน git history โตถาวรLEG-FRONT-01
storage/pdf/manual.pdf1,560,320 bytes (~1.5 MB)PDF คู่มือใน git — รับได้กว่า IPA แต่ยังเป็น blob
QR PNGs ที่ commentหลายไฟล์ใน image/asset ค้างQUAL-FRONT-02

ไม่มี build script ใน repo ที่ regenerate .ipa จาก source — ไฟล์ถูกวางด้วยมือ

ความสัมพันธ์ remote IPA vs local IPA

ArtifactLocationCitation
Manifest package URLhttps://vtrc.redcross.or.th/adn/VTRC.ipaVTRC.plist:13-14
Committed binary./VTRC.ipa ใน repo rootgit ls-files
Download button (iOS)ชี้ manifest ไม่ชี้ไฟล์ localindex.html:100-102

เอกสารนี้ไม่ยืนยันว่า bytes ของไฟล์ใน git ตรงกับไฟล์บน server — ต้องเทียบ checksum แยก (OBS-FRONT-01)


iOS trust instructions (ข้อความบนหน้า)

หลังติดตั้งครั้งแรก ผู้ใช้ต้อง Trust โปรไฟล์องค์กร ตามข้อความใน #app-manual (index.html:54-61):

  1. Settings → General → Device Management
  2. เลือก THE THAI RED CROSS SOCIETY → Trust
  3. เปิดไอคอนแอป VTRC

บล็อกนี้ถูกลบออกจาก DOM บน Android/desktop ใน IIFE (index.html:86-87)


Security / privacy surface

Itemสถานะ
Auth / APIไม่มี
Cookie / localStorage ของแอปไม่มีบนหน้านี้
Analyticsส่ง event ไป Google (G-TY5XYT3NY2) — index.html:12-18
PII ใน HTML/CSSไม่พบ
IPA contentsbinary อาจมี secrets ภายใน — ไม่ unpack ในเอกสารนี้

ไป 03 · Scorecard