Internet downtime should never halt a retail store. TRAX POS is built with a resilient Offline-First architecture, ensuring full checkout and printing capabilities even during complete network outages.
1. How Offline Mode Works #
- Automatic Detection: The system continuously monitors network connectivity via
connectivityService. - Instant Fallback: When internet connection drops, the top WiFi indicator turns Red (Offline Mode).
- Zero Interruption: Cashiers can continue scanning barcodes, adding weighed items, printing receipts, and opening the cash drawer as normal.
2. Local Database Storage (IndexedDB) #
- During offline periods, all completed checkout transactions, customer updates, and shift timestamps are saved directly into the browser’s high-capacity IndexedDB database on the local terminal PC.
- Local invoices receive local serial audit numbers and are stored safely without risk of data loss.
3. Automatic Background Synchronization #
- As soon as internet connectivity is restored, the top indicator switches back to Green (Online).
- The background Sync Engine activates automatically:
- Batches of offline invoices are transmitted to the cloud PostgreSQL database.
- Product stock counts and financial reports are reconciled across all store branches.
- A subtle green notification confirms: “All offline transactions synchronized successfully.”

