แอปมือถือมักต้องทำงานแบบ offline (ไม่มี/มีการเชื่อมต่อที่ไม่ดี) และ sync ข้อมูลเมื่อการเชื่อมต่อกลับมา สิ่งนี้เกี่ยวข้องกับการเก็บข้อมูลแบบ local การตรวจจับการเชื่อมต่อ การ queue การเปลี่ยนแปลง และการ sync — แง่มุมที่ท้าทายแต่สำคัญของแอปมือถือที่แข็งแกร่ง
ทำไมการรองรับ offline จึงสำคัญ
Mobile devices have UNRELIABLE connectivity (no signal, poor network, airplane mode):
→ apps that break/are useless offline frustrate users
→ OFFLINE-FIRST apps work regardless of connectivity → better, more robust UX
→ Handle: reading cached data offline, making changes offline, syncing when back online.
