SDK
Add health data collection to your mobile or cross-platform app. Native libraries available for iOS, Android, Flutter, React Native, Expo, and Ionic Capacitor.
Introduction
The Sahha SDK connects your app to the health data stored on your users' devices. On iOS, health and fitness data lives in Apple Health , powered by Apple's HealthKit framework. On Android, the equivalent is Health Connect , Google's unified health data layer. The SDK handles the connection to these platform health stores, background data collection, and syncing everything to the Sahha API — so you can focus on building your product.
Integrate the SDK
Follow these steps to integrate the Sahha SDK into your project.
- Install the SDK — Prepare your project, add the Sahha library, and complete platform setup
- Configure Settings — Set your environment and notification preferences
- Register and Authenticate Profiles — Create user profiles and connect them to Sahha
- Enable Data Collection — Choose sensors, request health data permissions, and start collecting
Data Access
| Method | Description |
|---|---|
| getSamples | Raw event-level data from Apple Health and Health Connect |
| getStats | Daily aggregated summaries of user activity |
| getBiomarkers | Sahha-derived daily health biomarkers |
| getScores | Health scores and contributing factors |
| getDemographics / postDemographics | Retrieve or set optional profile metadata for analysis |
Resources
- Previous
- Data Dictionary
- Next
- API