- Targets → Runner → Signing & Capabilities → add “HealthKit”.
Info.plist usage descriptions
Add the following keys with your user-facing rationale:Permissions
On iOS, certain types only support READ (e.g., ECG events). The plugin will throw if you request WRITE for these.- Examples that cannot be written:
ELECTROCARDIOGRAM, heart-rate event types (high/low/irregular),WALKING_HEART_RATE,ATRIAL_FIBRILLATION_BURDEN. recordingMethodmust bemanualorautomaticwhen writing.
Special types
- Audiogram can be written on iOS only.
- Insulin delivery can be written on iOS only (requires a valid reason: basal or bolus).