โ Full Stack Mobile App Development learning pathFull Stack Mobile App Development ยท Module 6 of 10
Databases and offline data
Store data locally and in the cloud.
๐ Key ideas
- Cloud: Firestore, Realtime Database, PostgreSQL, MongoDB.
- Local: SQLite (sqflite/Room/expo-sqlite), Hive, Isar, MMKV.
- Secure storage for tokens (Keychain/Keystore).
- Offline-first: work locally, sync when online.
- Handle conflicts when syncing.
๐ก Real-life example: Offline-first is keeping a diary that you sync to the cloud whenever you find Wi-Fi.
SQLiteEmbedded local database
FirestoreCloud document database
Offline-firstLocal-first with background sync
Secure storageEncrypted key storage