Skip to content

Set up Health Connect on Android

Android uses Health Connect. Runtime permission requests work only when the matching android.permission.health.* declarations are present in the final application manifest.

  • Use a supported Android device with Health Connect available and current.
  • Add test records through a trusted health app or Health Connect test workflow.
  • Confirm the player can open Health Connect’s app-permission screen.
  1. Open Tools > HealthBridge > Permissions.
  2. Select the minimum read and write types required by the feature.
  3. Save the settings.
  4. Review the derived permissions under Project Settings > Plugins > HealthBridge.

The plugin includes manifest declarations for common exercise, heart-rate, steps, distance, calories, sleep, and selected body-measurement workflows. Additional registry types can require project-owned manifest entries.

Do not assume that a permission row automatically reached the packaged app. Inspect the final generated manifest and confirm every requested permission is declared.

If a permission is absent from the manifest, Health Connect cannot offer it in the runtime prompt. Add the matching declaration through project Android configuration or a project-owned Unreal Plugin Language file, then rebuild.

Android reports granted and denied permissions. Design for partial access:

  • Keep unrelated features working.
  • Disable only the operation that lacks permission.
  • Explain how to reopen Health Connect permissions.
  • Retry after the player returns from settings.
  • Do not repeatedly open permission prompts without a user action.

Initialization can fail when required core access is unavailable or Health Connect is missing or outdated.

  • Workout routes can require a separate Health Connect consent flow.
  • Writes require direction-specific permissions.
  • A successful read permission does not permit writing.
  • Delete operations use record IDs and should target app-created records.
  1. Produce a fresh Android artifact from the source being tested.
  2. Inspect its final manifest.
  3. Install that exact artifact on the device.
  4. Confirm package and version identity.
  5. Test full grant, partial grant, denial, revoke-after-grant, and empty data.
  6. Remove synthetic records after write/delete testing.
  • Permission missing from prompt: check the final manifest.
  • Initialization fails: check Health Connect availability and required access.
  • Editor works but device fails: the editor uses mock data and bypasses native permission behavior.
  • Route requires consent: complete the route-specific flow and retry.

See device validation and troubleshooting.