K9 SAR Log

Feature

Offline outbox

Offline outbox in K9 SAR Log queues session and problem writes in IndexedDB when the radio is down, then flushes them when the app is open and online.

There is no setInterval poller and no Periodic Background Sync. Sync runs while you are in the app, including a Settings control to sync now.

What goes in the outbox

Outbox items cover session upserts, problem upserts, deletes, and track-point appends. Each item carries enough payload to replay the write when Neon is reachable again.

The UI surfaces a pending count so a handler knows changes are still on the device.

When flush runs

Flush starts on reconnect opportunities while the document is open, and from Settings → Sync now. It does not wake the phone in the background to burn battery on a training log.

Failed items stay queued; a successful replay removes them from IndexedDB.

What it does not do

Offline support is an outbox for this device, not multi-master sync.

Common questions

What happens if I lose signal during a training session?

Session and problem writes queue in IndexedDB on the device and flush when the app is open and online again.

Does K9 SAR Log sync in the background with the screen off?

No. Flush runs while the app is open, including Settings → Sync now. There is no Periodic Background Sync.

Can I force a sync?

Yes. Settings includes Sync now for when you are back online and want the outbox emptied immediately.

What if I clear the browser site data before syncing?

The IndexedDB outbox is cleared with the site. Unsynced changes on that device are gone.