Files
efiten 149e39bb50 fix(native): keep uploading with the screen off
Field log 2026-11-10: with the screen off the Android WebView stopped
running JavaScript timers while Bluetooth frames and GPS fixes kept
arriving. For eleven minutes receptions were queued but nothing was
published, no RF sample was taken, no discover, region ask or uplink ping
went out, and the broker dropped the link for want of a keepalive. The
116-record backlog went out when the screen came back on; positions and
rx_at in client_rx_observations were correct.

Every frame and GPS fix now calls catchUp, which runs the jobs whose timer
is overdue: the monitor tick, the drain, the pending RF sample and, when
the drain is late and the broker link is down, one reconnect per 15 s.
src/catchup.js holds the decision (test/catchup.test.mjs). The debug log
now records when the app is hidden and visible again. Not yet tested on
the phone.
2026-11-10 22:20:04 +01:00
..