Skip to content

Offline-First League Management: Surviving Venue Dead Zones

Pool halls are notorious for poor cellular reception—often situated in commercial basements, steel-beam warehouses, or thick concrete facilities. An app that depends on constant cloud connectivity will fail on league night.


  1. Local-First Writes: Every score button tap updates local state and writes to persistent device storage before any network request is attempted.
  2. Pending Write Metadata: The Flutter app inspects snapshot.metadata.hasPendingWrites to show immediate visual feedback that a shot was recorded locally.
  3. Automatic Cloud Sync: When network connectivity is re-established (monitored via InternetConnectionChecker), queued mutations are streamed to Google Cloud Firestore in order.
  4. Offline Signatures: If Wi-Fi is entirely down at midnight when the match concludes, captains sign the local device. The cryptographic hash and signatures are cached and automatically uploaded once either captain reaches cellular range outside the venue.