Skip to main content
Read the Mobile SDK Integration Guide first. It covers what is the same on every platform: the backend token endpoint, the SDK lifecycle, and the production checklist. This page shows the React Native calls for each step.
Installation currently takes a few extra steps. The package is not on npm yet, so you install it from GitHub, and on Android its native dependency has to be published to Maven Local first. See Installation. We’re working on publishing the package to npm and serving the Android dependency from a public repository, after which both steps go away.

Configure on Every Launch

isSessionValid(), isSyncActive(), getStoredCredentials(), getSyncStatus(), getAvailableProviders() and setProvider() are synchronous - no await needed.

Sign In

Once per user, when isSessionValid() is false, with tokens from your backend endpoint:
When token refresh fails, get new tokens and call updateTokens() - not signIn():

Select the Provider (Android)

On iOS, getAvailableProviders() returns a single apple entry. The stored choice is available as getStoredCredentials().provider.

Request Permissions

See Supported Health Data Types for the full list, and Request permissions for what the returned boolean means on each platform.

Start Background Sync

Other sync calls, all described in the SDK README:

Logging

Disconnect

Expo and Bare React Native Setup

On top of the production checklist:
  • Expo: add the config plugin to app.json (see Installation). It sets the HealthKit entitlements, Info.plist usage texts, background modes and task identifiers on iOS, and the Health Connect permission-rationale activity aliases on Android.
  • The plugin replaces UIBackgroundModes. If your app needs other modes (e.g. remote-notification), check Info.plist after npx expo prebuild and add them back.
  • Expo, Android: set minSdkVersion: 29 with expo-build-properties.
  • Bare React Native: install Expo modules, then add the iOS entitlements and Info.plist keys yourself, and the Health Connect activity aliases described in the Android integration guide.

Complete Example

Next Steps

Troubleshooting

Common issues and solutions for iOS and Android.

SDK API reference

Every method and type, with platform differences.