baldav/src-tauri
4aiman d4ef9a1f9f Fix: background GPS points lost on OS service restart
Regression from per-session points file change (1feb2ef): the service
returns START_STICKY, so when the OS kills it during screen-off, it
restarts with a null intent and onStartCommand minted a NEW points file,
repointing gps_live_points.jsonl and orphaning accumulated background
points. Evidence: many tiny orphaned gps_points_*.jsonl fragments.

Fix: onStartCommand creates a new session file only on a genuine start
from JS (intent with extras). A START_STICKY restart (null intent) keeps
writing to the existing session file from the pointer — one file per
session until Stop.

Verified on device: am kill (= START_STICKY restart) no longer creates
a new file, pointer unchanged, trail resumes on return. Background
writing confirmed: 49 points in 70s with screen off (Dozing) at 1Hz.
2026-07-02 22:29:29 +03:00
..
capabilities GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
gen/android/app/src/main Fix: background GPS points lost on OS service restart 2026-07-02 22:29:29 +03:00
icons GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
src Health-diet.ru products (24K), GPS session safety, build.sh upload fix 2026-06-28 23:17:51 +03:00
build.rs Seed products DB + Settings screen + build fixes 2026-05-14 17:35:29 +03:00
Cargo.lock Gimbal lock compensation, heading EMA smoothing, build.sh install command 2026-07-01 01:12:06 +03:00
Cargo.toml Gimbal lock compensation, heading EMA smoothing, build.sh install command 2026-07-01 01:12:06 +03:00
tauri.conf.json Gimbal lock compensation, heading EMA smoothing, build.sh install command 2026-07-01 01:12:06 +03:00