Technical
How your app embeds GaitIQ.
Your app keeps its users, sign-in, navigation and brand. Configure the SDK once at sign-in, open the walk screen when someone takes a walk, and sign it out with them. Capture, timing and upload all run inside the SDK, with no second login, no secrets in the app and nothing to run on your servers.
The flow
Three parts, each with one job.
Your app
- Signs people in with your identity provider
- Decides which walk or challenge to offer, and when
- Owns its screens, navigation and look
GaitIQ SDK, on the phone
- Runs the walk from setup to finish
- Captures motion at 50 Hz
- Exchanges your ID token for short-lived access, and renews it
- Queues uploads offline and retries
footing health platform
- Checks your provider’s signature
- Checks and stores every recording under your account
- Versions every data format
- Never calls your servers
In code
Three steps.
1. Configure once, when someone signs in
Android shown; iOS takes the same settings.
- patientId
- Your id for the person. We store it as given.
- clientId
- Names your app. Public, not a secret; it ties every upload to your account.
- idTokenProvider
- Returns your sign-in’s current ID token when asked. The SDK turns it into platform access and never stores it.
- theme
- Your brand and surface colors, light and dark. Text follows the system font and size.
- apiBaseUrl
- Production by default. Any other address shows a band on every SDK screen.
GaitIQSDK.initialize(
GaitIQSDKConfig(
patientId = user.id,
signIn = IdTokenSignIn(
clientId = "YOUR-CLIENT-ID",
idTokenProvider = object : IdTokenProvider {
override suspend fun getIdToken() =
yourAuth.currentIdToken()
},
),
theme = GaitIQThemeConfig(primary = 0xFF1B6B80),
driverFactory = DatabaseDriverFactory(context),
platformContext = PlatformContext(context),
)
)2. Open your walk, set up your way
Full screen: where the phone is carried and any walking aid at setup, instructions, a countdown, then the walk. It ends on its own once the person stands still and returns a result, or nothing if they back out. Your title shows on every screen.
- Jetpack Compose
- GaitTestFlow
- iOS, UIKit or SwiftUI
- GaitTestFlowViewController
- Android Activity
- GaitTestContract
// A 40-step walk: 20 steps out, turn, 20 back
val walk = GaitTestConfig(
testType = GaitTestType.TURNAROUND,
turnaroundSteps = 20,
title = "Your walk name",
)
GaitTestFlow(
testConfig = walk,
onComplete = { result -> /* your next screen */ },
onCancel = { /* person backed out */ },
)3. Add only what you need
About the person
Birth year, sex, height and weight, all optional, from your own form via updatePersonAttributes. Nothing is asked by the SDK. A missing value stays missing, never 0.
Optional extras
Apple Watch wrist capture, daily walking from HealthKit or Health Connect, and results pages opened through a one-time link. Each is off until your app turns it on.
The split
Three ways the SDK works.
SDK screens
The SDK draws the screens and does the work. Your app starts it with one call.
- Walks
- Challenges
- Balance sessions
- The daily check-in
- Health access primer
SDK data and calls
The SDK supplies the data and the calls. Your app draws its own screens.
- Research consent
- About the person
- Results, as a one-time link
Your app only
Your app does it. The SDK has no part.
- Sign-up and sign-in
- Accounts and names
- Terms, privacy, sharing and payments
Who owns what
| Capability | GaitIQ SDK | Your app |
|---|---|---|
| Sign-up, sign-in, accounts, names | — | Owns |
| The person’s id | Stores it as given | Owns |
| Walk, challenge, balance and check-in screens | Owns | Starts them |
| Where the phone is carried, and walking aids | Asks before every walk and balance session | — |
| Recording sensor data | Owns | — |
| Uploading | Owns, on its own schedule | — |
| Health permission screens and health reads | Owns | Decides when to show |
| Research consent screens | — | Owns |
| Research consent record | Owns | — |
| Form for the person’s attributes | — | Owns |
| Saving the person’s attributes | Owns | — |
| Results screens | Hands out a link | Shows the link |
| Terms, privacy, sharing, payments | — | Owns |
Research export and analysis run on the footing health platform, not in the SDK.
Rules and behavior
What the SDK always does.
- Every walk, challenge, balance session and check-in goes through the SDK.
Your app never records or uploads one itself, and never calls the platform’s API directly. If the platform needs an input, the SDK has a call or a screen for it.
- Nothing is filled in by default.
Phone placement is asked before every walk and balance session, and walking aids before every walk. The last choice is preselected; challenges and check-ins ask neither.
- No credentials of its own.
The SDK stores no password or long-lived token. Platform access lives in memory only.
- Uploads survive restarts.
A recording waits in an on-device queue until it uploads, and an upload cut off by the app closing is sent again. A walk still being recorded when the app closes is not recovered.
- Sign-out deletes the person’s local data.
Call signOut() when the person signs out of your app. The SDK makes one last upload attempt, then deletes the upload queue, sessions, drafts and personal settings, and drops their token. What describes the phone stays. A token already issued stays valid until it expires, at most 15 minutes.
- Every upload names its build.
Each recording carries the SDK version, so it can be traced to the build that made it.
- Portrait on Android.
The SDK’s screens are portrait only on Android, because rotating would end a recording in progress.
Sign-in
Your sign-in is the only sign-in.
Your app never names the person on its own authority. Your provider’s signed ID token does, and Footing checks it. There is no footing account for the person and no token service on your servers.
- 1login for the person: yours
- 0servers or endpoints to build
- 0secrets inside your app
- 0calls from us to your systems
- 15 minplatform access, renewed by the SDK
- Your sign-in
- Your app signs the person in with its own OpenID Connect provider. The SDK never shows a login screen.
- Handing it over
- Your idTokenProvider returns the person’s current ID token whenever the SDK asks. The client id is public and is not a secret.
- The exchange
- The SDK sends the ID token and your client id to footing health in a standard OAuth token exchange (RFC 8693).
- The check
- Footing finds your provider’s published keys through OpenID Connect discovery, then checks the token’s signature, issuer, audience and expiry. Only providers listed for your client id are accepted.
- The token
- A 15-minute access token signed with ES256 by a key that can only sign and verify. It names the person and your account, and carries no email. There is no refresh token.
- Renewal
- The SDK exchanges again a minute before the token expires, or as soon as your ID token changes.
Why it is safe
What the token exchange protects against.
- Only your provider can vouch
- Access is granted only for a token your provider signed, checked against its published keys.
- Tokens can’t be borrowed
- A token issued to another app, or one that has expired, is refused.
- Nothing to extract
- The app holds no secret. A copied app gets nothing it could use.
- Access stays short
- Platform access lasts 15 minutes and is renewed only while your sign-in is still valid. Sign the person out and access lapses within 15 minutes.
- Your people stay yours
- Each person is mapped within your account, so the same subject under another partner is a different person.
What it protects, and where it stops
- A copied app binary
- It holds only the public client id. Without a valid ID token from your provider, it gets no platform access.
- A token from a provider you didn’t list
- Refused. Every refusal looks the same to the caller, so a probe learns nothing about why.
- One partner reaching another’s people
- People are mapped within each partner’s account, so a subject means nothing in another account.
- A platform token that leaks
- It works for one person for at most 15 minutes. There is no refresh token to use after that.
- Stopping a partner
- The account can be suspended. New tokens stop at once; tokens already issued expire within 15 minutes.
Opening results
Results open through a single-use link that lasts one minute. Opening it starts a 15-minute session for the results pages only.
Several people on one phone
Not supported. The upload queue is not kept per person, so each person should use their own phone, or sign out before someone else signs in.
Safe first sign-in
Two first sign-ins at the same moment still map to one person. A new person is credited to your account, and an existing attribution is never moved.
On the platform
Checked, cleaned and flagged before analysis.
Each item below is built into the platform today.
Checked on arrival
- One strict contract. Size, format, required streams, declared units and valid settings, before any analysis.
- Wrong units caught. Data still in g, or converted twice, is stopped instead of quietly mis-scaled.
- Bad uploads set aside, never processed, so one broken file can’t skew anything.
A signal you can analyze
- Gaps cut, never filled. Filling a hole would hide it, so the longest unbroken stretch is kept.
- Actual sample rate measured from the data and used by every filter.
- Up tracked in a swinging hand, using the gyroscope, with its drift removed.
- Filters that don’t move events or distort the start and end of a recording.
- Not a walk, not a failure. A still phone or a second-long tap is set aside cleanly.
A reliable step count
- Rhythm first, so a stride, a step and an echo of one are told apart, and only walking counts.
- Handling after the stop dropped, so lifting the phone is never counted as a step.
- Pauses and turns kept separate from cadence and speed.
- Measured walks timed on the walk, not the pause after it.
Quality you can see
- Every walk flagged honestly: too short, a long pause, an impossible speed or mostly turning.
- Missing stays missing, with a reason, never a 0 or a 100.
- Everything versioned, so any value traces back to how it was computed.
Privacy
Built for health data from the start.
Sign-in through your identity provider is how every app connects to the platform, including our own app, footing.
- Encrypted in transit and at rest.
Recordings are encrypted on the way up and where they are stored. On iPhone they stay out of iCloud and device backups, and are protected while the phone is locked.
- Research only with consent.
Nothing is used for research unless the person has explicitly agreed, against the exact text they were shown, and they can withdraw at any time.
- Never sold.
Measurement data is not sold or shared for advertising, by us or through us.
- No email through sign-in.
Footing never receives the person’s email from the token exchange.
Getting set up
Three steps, once.
At onboarding we issue your client id and SDK access, connect your sign-in, and set up how your team receives its recordings.
- 1. Your provider
- You tell us your provider’s issuer and the audience in its ID tokens, or your Firebase project id. The person is named by the sub claim unless you ask for another.
- 2. Your client id
- We create a client id for your app and list your provider on it.
- 3. Your app
- You pass the client id and an idTokenProvider to IdTokenSignIn when you set up the SDK. Nothing else changes in how the SDK is used.
Client ids are issued per stage: one for development and one for release.
Works with
Any standard OpenID Connect provider, such as Firebase, Auth0, Okta or Amazon Cognito. Partners without one can talk to us at onboarding.
Fits when
The person signed in is the person doing the walks and challenges, and your provider issues standard ID tokens with a stable subject.
iOS project
Motion, camera and Health usage strings (App Review asks for the Health ones even if you don’t use Health), plus the watch target if you use it. Installed with CocoaPods.
Android project
Internet permission, plus Health Connect entries if you use daily walking. Installed from a Maven repository.