Overview
The SDK repository includes a fully functional example app that demonstrates how to use SDK to sync Apple Health and Android health data with Open Wearables. It’s also a great way for individuals to sync their personal health data and get it into Open Wearables in minutes! Use it to test the SDK, explore the code, and see how everything works together.Example App Source
View the example app source code on GitHub.
Don’t want to build the app yourself? Join our Discord and ask for a TestFlight beta invitation. The app will also be available in the App Store soon!
What You’ll See
The example app demonstrates the complete integration flow:- Invitation Code - Connect via invitation code (host + code → redeem → sign in)
- SDK Configuration - Initialize the SDK with proper host settings
- Authentication - Sign in with credentials from the dashboard
- Provider Selection - On Android, choose between Samsung Health and Health Connect
- Permission Request - Request health data permissions from the user
- Background Sync - Enable automatic health data synchronization
- Sync Status - Monitor sync progress and handle interruptions
- Log Viewer - Browse SDK logs with search
See the full flow in action
Watch how data flows from device setup through syncing to the dashboard and API.
Running the Example App
iOS Setup
Open
ios/Runner.xcworkspace in Xcode and:- Select your development team in Signing & Capabilities
- Ensure HealthKit capability is enabled
- Update the bundle identifier if needed
Android Setup (optional)
For Android:
- Ensure Health Connect is installed on the device (or Samsung Health for Samsung devices)
- No additional Xcode/Android Studio configuration needed
Get credentials from Open Wearables Dashboard
- Go to your Open Wearables dashboard
- Create a new user or select an existing one
- Generate an invitation code for the user
- Copy the invitation code and host URL
Run the app
For iOS: Run on a physical iOS device - HealthKit doesn’t work in the simulator.
For Android: Run on a device or emulator with Health Connect installed.
Connect and sync
- Enter the host URL and invitation code
- Tap Connect to redeem the code and sign in
- On Android, select a health provider (Samsung Health or Health Connect)
- Grant health permissions when prompted
- Tap Start Sync to begin background synchronization
- Check the dashboard to see your health data appear!
Example App Code Structure
The example app demonstrates best practices for SDK integration:Key Code Sections
SDK Initialization:Testing the Full Flow
Set up Open Wearables locally (optional)
If you want to test with a local instance:Then use your local URL as the host when connecting in the app.
Create test data
iOS: Add some health data to Apple Health on your device:
- Open the Health app
- Browse → Steps → Add Data
- Add a few data points
Troubleshooting the Example App
App crashes on launch (iOS)
App crashes on launch (iOS)
Make sure you’re running on a physical device, not the simulator. HealthKit is not available in the iOS Simulator.
Sign-in fails
Sign-in fails
- Verify your invitation code is correct and hasn’t been used already
- Check that the host URL is the API URL (not the dashboard URL)
- Check that your Open Wearables instance is running
- Ensure network connectivity
No data syncing
No data syncing
- Confirm health permissions were granted (check iOS Settings → Privacy → Health, or Android Settings → Health Connect)
- Make sure there’s actual health data in Apple Health / Health Connect
- Try tapping Sync Now to trigger an immediate sync
- Check the Logs page in the app for errors
Xcode signing errors (iOS)
Xcode signing errors (iOS)
- Select your development team in Xcode
- Update the bundle identifier to something unique
- Ensure your Apple Developer account has HealthKit capability
Provider not available (Android)
Provider not available (Android)
- For Health Connect: ensure it’s installed from Play Store (pre-installed on Android 14+)
- For Samsung Health: only available on Samsung devices with Samsung Health installed
Next Steps
Integration Guide
Integrate the SDK into your own app.
Troubleshooting
Common issues and solutions.

