Persist ride state across app restart and crash #12

Open
opened 2026-08-31 17:14:38 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:38 +02:00 (Migrated from git.butzei.de)

Goal

An accidental Back press or a crash two hours into a ride must not lose the ride.

Acceptance criteria

  • Ride state, distance, moving time and start timestamp written to persist storage
  • Writes throttled so flash wear stays reasonable
  • On launch, an in-progress ride is detected and the user offered resume or discard
  • Verified by force-killing the app mid-ride in the emulator and on the watch

Files

  • watchapp/src/c/state.c
## Goal An accidental Back press or a crash two hours into a ride must not lose the ride. ## Acceptance criteria - [ ] Ride state, distance, moving time and start timestamp written to persist storage - [ ] Writes throttled so flash wear stays reasonable - [ ] On launch, an in-progress ride is detected and the user offered resume or discard - [ ] Verified by force-killing the app mid-ride in the emulator and on the watch ## Files - `watchapp/src/c/state.c`
Sign in to join this conversation.
No description provided.