Skip to content

Set up Health Connect on Android

Android uses Health Connect and requires HealthBridgeInitializer in the player.

  1. Add HealthBridgeInitializer to a GameObject in the first relevant scene.
  2. Assign HealthBridgeSettings.
  3. Enable Initialize On Awake, or call InitializeAsync from a controlled product flow.

Do not call AutoInitializeAsync as an Android fallback; it returns false by design.

Select the minimum read/write types in Project Settings. The Android build processor adds configured Health Connect dependencies and manifest permissions.

In the current SDK, READ_EXERCISE and READ_HEART_RATE are core initialization permissions. Denying either causes initialization to fail. Optional denials can degrade individual features while initialization succeeds.

Subscribe to HealthBridgeEvents.OnPermissionsResolved for granted, denied, and core-permission details.

Inspect the final generated manifest. Health Connect cannot display a runtime permission that is missing from the manifest.

Use a supported Android device with Health Connect installed and current. A missing or outdated provider causes initialization to fail and can open the Health Connect store listing.

  • Keep unrelated features usable.
  • Disable only operations missing access.
  • Explain how to reopen Health Connect permissions.
  • Retry only after a player action or settings change.
  • Do not loop permission prompts.
  • Routes can require a separate consent flow.
  • Read permission does not permit writing.
  • Each optional workout metric needs matching write permission.
  • Deletes require a valid record ID and should target app-created data.

Use a fresh artifact from the source under test. Record its checksum, package, version, and signing identity; install that exact artifact and test grant, partial grant, denial, revoke, retry, and cleanup behavior.