Skip to content

Mock data and physical devices

HealthBridge uses a mock provider in the Unreal Editor and on desktop. Mobile builds select the HealthKit or Health Connect provider.

  • The plugin loads and initializes.
  • Blueprint and C++ completion paths execute.
  • Your UI handles expected data shapes.
  • Workouts and generic samples can be displayed.
  • Heart-rate monitoring events reach your game.
  • Write and delete UI can be developed without touching personal records.
  • HealthKit entitlements or provisioning.
  • Health Connect installation and manifest permissions.
  • Real platform authorization behavior.
  • Native plugin packaging.
  • Device synchronization timing.
  • Ownership or deletion behavior for real records.
  • Physical-device performance or lifecycle recovery.

The default mock mode generates deterministic workouts. Configure count and seed under Project Settings > Plugins > HealthBridge.

For exact fixtures:

  1. Open Tools > HealthBridge > Mock Workouts.
  2. Switch the source mode to Curated.
  3. Add, duplicate, reorder, enable, or disable fixtures.
  4. Use JSON import or export when a team needs repeatable scenarios.

Curated fixtures affect only editor and desktop mock imports. Device providers continue to read from HealthKit or Health Connect.

  1. Prove initialization and reads with generated mock data.
  2. Add curated empty, partial, and unusual workout fixtures.
  3. Verify failures and empty states in your UI.
  4. Package with the correct platform configuration.
  5. Test permissions and real reads on physical devices.
  6. Test denied, partial, disconnected, background, and recovery cases.

Label synthetic writes clearly and remove app-created test records after device testing. Never substitute a mock or previously installed artifact for release device evidence.