The 90-Second Reset: How StretchGoGo Detects Your Posture and Delivers Personalized Stretches On-Device

A deep-dive into the SwiftUI + CoreMotion + HealthKit + WatchOS architecture that makes a 30-second daily reset feel native to every iPhone and Apple Watch.

If you have ever finished a Pomodoro, glanced at the clock, and realized that your shoulders have quietly climbed toward your ears for the last fifty minutes, this post is for you. StretchGoGo is the app we built to interrupt that pattern. It reads your actual posture from the motion sensors in your pocket or on your wrist, picks one of seven body states, and delivers a 30-second stretch on the device that is closest to you. Nothing is uploaded. Nothing leaves the phone. In this post we will walk through the entire engineering pipeline that makes that possible, share the real numbers after ninety days in production, and be honest about the five things we got wrong along the way.

1. Why On-Device Privacy Matters

Most fitness apps follow the same playbook. They stream accelerometer and gyroscope data to a cloud service, run a model there, and push a notification back to your phone. That is fine for steps and heart rate, but it is the wrong shape for posture. Posture is a continuous, low-signal, high-context stream. Sending every sample off-device burns battery, leaks a behavioral fingerprint, and adds a network round trip that pushes latency past the threshold where a stretch reminder feels natural.

Desk worker kinetic micro-mobility routines and spinal decompression exercises
Desk worker kinetic micro-mobility routines and spinal decompression exercises

StretchGoGo takes the opposite bet: every inference runs locally. CoreMotion samples are read by a CoreML model on the iPhone SoC, and a paired WatchOS extension runs the same model on the watch neural engine. HealthKit is the only system service that touches the data, and even then the writes stay inside the user's Health database. There is no backend posture service. There is no telemetry endpoint. The privacy story is not a marketing claim, it is a structural property of the design, and that property shapes every architectural decision in this post.