[v0.12.0+22] - 2026-11-24
This release adds watch apps for Apple Watch and Wear OS. Each records outdoor workouts on the watch and hands them to Endurain on the phone, which uploads them like any other activity. It also adds an optional countdown before a recording starts, on the phone and on both watches.
Added
- An Apple Watch app (watchOS 10 or newer), installed with the iPhone app. It records outdoor runs, rides, walks and hikes with GPS, heart rate and distance, and saves each workout and its route to Health. Pausing starts a new track segment.
- The finished workout is sent to the iPhone in the background, even if the phone is out of range when the workout ends. Endurain stores it as a local activity and uploads it like a workout recorded on the phone.
- A workout interrupted by a crash or a forced quit is resumed when the app relaunches. If watchOS ended it, the app finishes and sends what was recorded instead.
- The watch app, its permission prompts included, is available in all the app's languages.
- A Wear OS app (Wear OS 3 or newer), built with Health Services and Compose for Wear OS. It records outdoor runs, rides, walks and hikes with GPS, heart rate and distance, and shows the workout as an ongoing activity on the watch face. Pausing starts a new track segment.
- The finished workout is sent to the phone over the Wearable Data Layer, which delivers it whenever the devices connect, even if Endurain is not running.
- A workout interrupted by a killed process is picked up again when the app relaunches. If Health Services ended it, the app finishes and sends what was recorded instead.
- The Wear OS app is available in all the app's languages. It is a separate build (
android/wear) published under the same Play listing. GitHub releases attach it aswear-release.apk, next to the phone'sapp-release.apk, signed with the same key.
- Phone-side support for companion watch apps. A watch app hands finished workouts to the phone over a platform channel (
endurain/watch_transport). It is served by a WatchConnectivity bridge on iPhone and a Wearable Data Layer bridge on Android. Each keeps every received workout in a durable inbox until it has been stored. - A watch session is confirmed back to the watch only once the phone has stored it. These sessions stay queued on the watch instead:
- sessions that are not finished yet;
- sessions whose points this app version cannot read;
- workouts with a duration but no GPS route, such as one recorded with location turned off. The server does not accept a GPX without track points yet.
- The Apple Watch keeps every workout until the iPhone confirms it, and sends a delivered workout again if the iPhone has not confirmed it within 10 minutes. On Wear OS, a workout the phone never confirmed is dropped from the watch after 90 days, since the phone keeps its own copy.
- Duplicate protection for watch workouts:
- The app remembers the last 1,000 sessions it received. A session the watch sends again is not uploaded twice, even if its local copy was deleted.
- Health Sync never offers or imports a workout the Endurain watch app saved to Health, even when it reaches Health before the watch's own transfer arrives. It also skips any HealthKit or Health Connect workout that a received watch session already covers.
- Watch sync runs when the app starts, when it returns to the foreground, and when the watch signals new sessions. Only one sync runs at a time, with one extra pass for sessions that arrive during a sync.
- Local diagnostics breadcrumbs for watch syncs that have pending sessions, and for sessions left on the watch. Builds without a watch record none.
- An optional countdown before a recording starts, to put the phone away or get into the saddle first (#47). Turn it on under Settings → Recording → Start countdown and pick 3, 5, 10, 15 or 30 seconds. It is off by default.
- The countdown screen shows the seconds left, with buttons to start now, add 10 seconds or cancel.
- The last three seconds are spoken, followed by "Recording started" once recording begins. The voice can be turned off, and it uses the language and ducking settings of audio announcements.
- Location updates run during the countdown and are thrown away, so GPS has a fix for the first point. They also keep the app running in the background, so the countdown does not stall:
- On iPhone, this covers a locked screen.
- On Android, it runs in the recorder's foreground service, which also covers switching to another app. The recording then starts inside that same service, so it starts on time even with another app in front.
- Location permission is settled before the countdown starts, so a permission prompt never appears after the phone is put away.
- A start countdown on the Apple Watch and Wear OS apps, set on the watch itself: Off, 3, 5 or 10 seconds. It is off by default.
- The watch taps the wrist for the last three seconds and once more when recording starts. The countdown screen has Start now and Cancel buttons.
- The workout session is prepared during the countdown (
HKWorkoutSession.prepare()on Apple Watch,prepareExerciseAsyncon Wear OS). This keeps the app running with the wrist lowered and warms up GPS and heart rate. Nothing is recorded or saved until the countdown ends, and cancelling leaves nothing behind.
Fixed
- A temporary health-platform read error no longer disconnects Health Sync. That covers a rate limit, Health Connect being busy, and a locked iPhone. Since
health14 these errors are raised instead of returning an empty list of workouts. Only a permission error now disconnects Health Sync; other read errors are shown without disconnecting. - Health Sync on iPhone now imports every heart rate reading of a workout, not one value per ~5 minutes (#39). HealthKit stores heart rate from some recordings, such as Apple Workout, as condensed series, and the
healthplugin read each series as a single value. Endurain now reads each workout's readings withHKQuantitySeriesSampleQueryover its own platform channel (endurain/health_heart_rate), and falls back to the plugin read if that fails. - A route point now takes the heart rate reading whose time interval covers it, or the nearest reading within 10 seconds (was 5 seconds, measured from the reading's start only). Short gaps between readings no longer leave route points without heart rate, on iPhone and Android.
- The
health.read_workoutsdiagnostics breadcrumb now records the number of heart rate readings, where they came from, and how many route points got one. A failed series read recordshealth.heart_rate_series_failed. - Sign-in: a storage error during a token refresh no longer signs you out, and a late refresh failure can no longer end a newer sign-in. When the server ends a session, the app switches to guest mode right away. Sign-out errors are shown, and a sign-in no longer reports failure after it succeeded.
- Uploads: an expired sign-in no longer leaves pending activities stuck; they upload after the next sign-in. HTTP 408 and 429 are retried. An activity that was already saved is no longer uploaded again after recovery.
- Recording:
- A recording is no longer marked failed when a sensor reading, a pause or an auto-pause arrives at the wrong moment.
- Tapping Pause during an auto-pause now pauses for real.
- Long recordings no longer slow the app down over time.
- On iPhone, a recording continues after iOS terminates the app. Resuming from auto-pause restarts time announcements, and cached or invalid GPS fixes no longer add distance.
- On Android, a recording interrupted in the background shows a notification and no longer counts the gap as moving time. The recorder no longer starts without location permission, and the GPS warm-up stops when the app is closed during a countdown.
- Health Sync:
- Returning to the app no longer replaces the workout list you are browsing, and a selected workout that cannot be found is reported as failed.
- On iPhone, back-to-back workouts no longer share GPS routes.
- A failed heart-rate read no longer imports workouts without heart rate.
- On Android, loading older workouts stops once Health Connect history access is declined, with a message explaining why, instead of asking again on every page.
- Sensors:
- A Bluetooth sensor that drops out reconnects automatically.
- Two reconnect attempts at launch no longer cancel each other.
- Cadence shows 0 while coasting, and stale heart-rate and power readings are no longer recorded on Android.
- Settings: Settings shows the current server after signing in to another one.
- Watches:
- The Wear OS app starts a workout when only some permissions are granted.
- Its workout notification no longer stays up after a restore, and a failed start no longer leaves the exercise running.
- The Apple Watch no longer creates a duplicate workout when session recovery fails, or loses a point after a crash.
- Privacy: diagnostics redact JSON-quoted secrets and bare tokens, and redirects to another server no longer resend request bodies.
- Android 8: reading the device's unit system no longer crashes the app on Android 8.x, which lacks the API it used.
Changed
- Settings is now grouped into sections: Account, General, Recording, Devices & integrations, Data, and Privacy & support. Before, every entry was in one long list.
- The "Keep uploaded GPX files" switch moved from the main Settings list to the top of Settings → Activity history. It is shown even when the history is empty.
- The map tile server URL moved from Settings → Server to its own Settings → Map tiles screen, so the Server screen only shows the account and Log out. The URL is still stored per server, so Map tiles is hidden in guest mode. Signing in again replaces it with the server's tile setting only when the server has one, so a custom URL is no longer cleared by an empty server setting. The URL must contain
{z},{x}and{y}, and only supported placeholders. The map picks up a new URL without restarting. - On iPhone, recording works with While Using location access. Always access is only needed to continue a recording after iOS terminates the app; switching from Always to While Using mid-recording keeps recording.
- Uploads wait for the server's
Retry-After(up to a minute) before retrying; a longer wait leaves the activity queued for the next automatic upload. - Text shown by the system outside the Flutter UI is now translated into all the app's languages: Android notifications and the Health Connect explanation, iPhone permission prompts, and the Wear OS and Apple Watch apps. On Android 13 and newer the app's languages appear in the system's per-app language setting. Devices set to Brazilian Portuguese get the Portuguese text.
- Translations were reviewed in every language. Health Sync and device-access text that had been machine-translated now reads naturally (for example, "Clear" a selection no longer reads as "obvious"), brand names such as Health Connect are no longer translated or transliterated, each language uses one consistent form of address, and second counts use proper plural forms.
- The Android app now includes Google Play Services' Wearable Data Layer (
play-services-wearable) for the Wear OS link. Builds can leave it out with--android-project-arg=endurain.wearable=false; the watch link then reports "unsupported" and nothing else changes. The app still containsplay-services-location, whichgeolocatoralready brought in. - Updated dependencies:
health14.0.0,sentry10.6.0 andflutter_svg2.5.0, plus their transitive updates. - Android builds now use Gradle 9.9.2 and Android Gradle Plugin 9.5.2.
- The CI builder image and workflows use Flutter 3.50.1, on a refreshed Java 25 base image.