Skip to content

Onset Android Integration

Android client: onset-android repository. Uses the same Supabase project as iOS.

Auth

Platform Flow Edge function
iOS Sign in with Apple apple-link
Android Google Sign-In via Supabase OAuth google-link

Both apps start with anonymous Supabase JWT for edge functions, then link identity on sign-in.

Edge functions (patient mobile)

Function Purpose
search-supplement AI supplement search
scan-label Bottle label OCR
parse-lab Lab PDF/image parsing
lab-intelligence Lab ↔ protocol classification
simulate-protocol-lab Protocol Lab scenarios
generate-protocol AI routine draft (gated off via FeatureFlags)
client-event Product analytics
delete-account Account deletion
google-link Android Google identity linkage

REST / RPC

Same as iOS: validate_clinic_code, claim_practitioner_connection, protocol_v2, public_protocols, cloud sync tables (onset_*).

External

  • POST https://theonset.app/api/support — in-app support
  • RevenueCat entitlement pro

Secrets (Android secrets.properties)

  • ONSET_API_URL, ONSET_API_ANON_KEY
  • REVENUECAT_API_KEY (Google Play key)
  • GOOGLE_WEB_CLIENT_ID
  • PROTOCOL_SIGNING_SECRET