Case study: Offline-first mobile
How VERKRIT replaced 25 brittle REST endpoints with a local-first SQLite sync engine for a Kuwait delivery fleet operating in remote desert cellular blackouts.
Client Profile
Fleet Logistics (Kuwait)
Fleet Operations
Hundreds of active drivers daily
Technology Stack
Flutter, Dart, SQLite, Riverpod
Engineering Leads
Raviraj Singh, Anurag Singh
Zero parcel confirmations or signature receipts lost over 12 months in the field.
Form submissions commit to local SQLite instantly, removing the four-second network spinner.
Background sync worker with exponential backoff flushes the queue automatically.
01The challenge
Desert cellular blackouts and discarded signatures
The client manages parcel delivery and logistics across Kuwait. Drivers operate in dense urban cores as well as remote highway corridors, industrial ports, and desert border stations where cellular connectivity drops for hours at a time.
The initial mobile application was developed under the assumption that internet connectivity was permanent. All 25 driver operations (scanning parcel barcodes, capturing recipient touch signatures, taking cargo photos, and updating delivery status) attempted synchronous HTTP calls directly to the server.
When drivers tapped "Confirm Delivery" with zero signal, the app spun, failed with an unhandled timeout error, and wiped the form state. Drivers had to re-request customer signatures or bypass confirmation entirely. This created hundreds of unverified deliveries and billing disputes every week.
02Engineering solution
Building the offline-first outbox queue
We inverted data ownership: the local SQLite database became the single source of truth for the mobile client. Delivery manifests and route details are cached locally upon morning dispatch. Proof-of-delivery actions write directly to the local transactional SQLite engine with Write-Ahead Logging (WAL), completing in under 20 milliseconds without network dependency.
Instead of sending raw HTTP mutations, every driver action generates an immutable SyncEvent record with a UUIDv4 idempotency key. Even if the network drops midway through a POST request, the server de-duplicates the event using the event nonce, eliminating phantom double-scans:
class SyncEvent {
final String id; // UUIDv4 idempotency key
final String entityType; // 'delivery_pod'
final Map<String, dynamic> payload;
final int timestamp;
int retryCount;
SyncStatus status; // pending, in_flight, synced, failed
}We developed a lightweight background synchronization worker in Dart. When the device’s connectivity listener detects cellular or Wi-Fi reconnection, the sync worker begins flushing the outbox queue in sequential timestamp order. It uses exponential backoff with full jitter to avoid spikes on the backend when hundreds of drivers return to depot Wi-Fi at 6:00 PM.
03Measured outcomes
Results over 12 months in the field
- Over 12 months and hundreds of thousands of parcel deliveries, zero customer signatures or delivery confirmations were lost.
- Drivers confirm deliveries in under 50ms without loading spinners, saving an average of 45 minutes per driver route per day.
- Automatic sync rate reached 99.98% upon reconnection without requiring manual refresh or driver intervention.