Offline photo outbox for React Native insurance inspections and the bugs it exposed

ClaimLayer's field app for storm-damage insurance claims is designed to work without any cell signal, since inspectors often photograph roofs in rural areas right after storms knock out towers. Uploading photos immediately fails offline, so the app instead saves each capture locally and sends it later. Each photo is resized on the device, hashed with SHA-256, and turned into two queued operations: a file upload and an evidence record. Every queued operation gets a device-generated idempotency key so that retries are safe. The app processes the queue one item at a time in capture order, with the server's response determining each item's outcome.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in