MB·10
Mobile Projects
The TiffinBox customer and rider apps as a project in six milestones: an offline-first calendar with a sync engine and shared Kotlin logic, native screens with stable lists and accessibility, a network layer built for poor connections, live delivery tracking with push and Live Activities, security and privacy to MASVS, and a release pipeline with staged rollouts, kill switches and release-health monitoring; each with deliverables and measurable definitions of done.
Start here: two apps, one backend
Build TiffinBox's mobile apps against the capstone backend (Volume 19), or a small API of your own. The milestones follow the chapters; each ends with something running on a real device and measured.
How deep to go
Volume 17 defines six mastery levels. The project targets L4 across the volume and L5 in your chosen platform.
Milestone 1: offline-first calendar and sync
Deliverables. Kotlin Multiplatform shared module with the subscription rules, API client (Ktor), local database (SQLDelight) and sync engine (pending operations with idempotency keys, delta pull with server cursors, tombstones); Android UI in Compose and iOS UI in SwiftUI for the calendar.
Done when. Skips made offline appear instantly and sync later; a skip after the cut-off is rejected with a clear message and reverted; two devices editing the same week converge (chapter 05's tests); process death and rotation lose nothing.
Milestone 2: screens, lists and accessibility
Deliverables. Kitchens, menus, order history and the assistant panel; lists with stable keys; images loaded at slot size; dynamic type / font scaling, TalkBack and VoiceOver labels, dark mode.
Done when. Scrolling the menu list on the reference mid-range phone drops < 1% of frames; recomposition counts stay flat when one order updates; screen-reader walkthroughs of the main journeys pass.
Milestone 3: networking for poor connections
Deliverables. One HTTP client with connection reuse, HTTP/2 or HTTP/3, compression, ETag caching; screen-shaped endpoints; timeouts and safe retries; connectivity-aware queues; image CDN with size parameters.
Done when. The home screen loads in < 1 s from cache and refreshes in one request; at 600 ms RTT it's usable within 2 s; no screen needs more than two sequential round trips.
Milestone 4: live tracking and notifications
Deliverables. FCM and APNs integration with token management; notification channels/categories; deep links into orders; an iOS Live Activity and an Android ongoing progress notification updated by push; the rider app's location sharing during deliveries.
Done when. Status changes reach the customer within 5 s; no polling in the background; the rider app's battery use over a 2-hour shift is measured and within an agreed budget.
Milestone 5: security and privacy
Deliverables. System-browser sign-in with PKCE and passkeys; tokens in Keychain/Keystore; verified App Links/Universal Links; no provider secrets in the apps; Play Integrity / App Attest on rider payouts; privacy declarations and an SDK inventory.
Done when. A MASVS-L1 checklist passes (L2 controls for payouts); an interception test with a user-installed CA shows no sensitive data in clear on pinned endpoints; a decompiled release build contains no secrets.
Milestone 6: release and observability
Deliverables. CI building and signing both apps; screenshot and UI tests; testing tracks; staged rollout / phased release with written halt criteria; feature flags and kill switches for the assistant's write tools and new payment flows; crash reporting with symbolication; a release-health dashboard per version.
Done when. A deliberately crashing build is halted at an early stage in a rehearsal; a kill switch disables a feature on all installed versions within a minute; crash-free sessions ≥ 99.8% across the last three versions.
Stretch goals
- Compose Multiplatform for a shared settings screen; compare with the native versions.
- An App Clip / Instant App for "order once without installing".
- On-device intent classification for the assistant to answer simple questions offline.
- Localise both apps into Hindi, Telugu and Tamil (Volume 23).