Skip to content
CARP Docs
Ask AISystemLightDark
On this page

You are reading the docs for Health 13.x, an older version. Go to 14.x, the latest version.

Data types

Every HealthDataType with its default unit and its availability on Apple Health and Google Health Connect, plus the supported workout types.

Copy MarkdownOpen inOpen in GitHubView as MarkdownOpen in Scira AIOpen in ChatGPTOpen in ClaudeOpen in Cursor

Data types are defined in the HealthDataType enum, and each type has a default HealthDataUnit.

  • iOS supports HealthKit-specific types such as workouts, ECG, sleep stages, nutrition, and many biometrics.
  • Android supports Health Connect types including steps, heart rate, sleep, speed and distance, nutrition, hydration, menstruation flow, and more.

Platform type lists

The plugin exposes a list of the supported types for each platform, dataTypeKeysIOS and dataTypeKeysAndroid:

// The types of the platform that the app runs on
final types = Platform.isIOS ? dataTypeKeysIOS : dataTypeKeysAndroid;

Use them for quick testing or to build permission requests. The lists are the same on every device, and dataTypeKeysIOS includes types that a device may not support:

  • TOTAL_CALORIES_BURNED, which the plugin does not support on iOS;
  • the types that need iOS 16.0 or later, marked in the table below.

On iOS, reading a type that the device does not support throws a PlatformException, and a read of several types then fails as a whole. To request access to all of dataTypeKeysIOS, ask for READ access only: WRITE access fails for the types that apps can only read. For ELECTROCARDIOGRAM, for example, requestAuthorization() throws an ArgumentError, and for EXERCISE_TIME, HealthKit throws an exception that crashes the app.

Health data types

All supported health data types, their units, and their platform availability. In the comments, iOS 16.0 or later marks a type that the plugin supports only from that version. On iOS 15, reading such a type throws a PlatformException, and writeHealthData() returns false.

Data typeUnitApple HealthGoogle Health ConnectComments
ACTIVE_ENERGY_BURNEDKILOCALORIEyesyes
ATRIAL_FIBRILLATION_BURDENPERCENTyesiOS 16.0 or later, read-only
BASAL_ENERGY_BURNEDKILOCALORIEyesyesOn Android, Health Connect's basal metabolic rate in kilocalories per day
BLOOD_GLUCOSEMILLIGRAM_PER_DECILITERyesyes
BLOOD_OXYGENPERCENTyesyes
BLOOD_PRESSURE_DIASTOLICMILLIMETER_OF_MERCURYyesyes
BLOOD_PRESSURE_SYSTOLICMILLIMETER_OF_MERCURYyesyes
BODY_FAT_PERCENTAGEPERCENTyesyes
BODY_MASS_INDEXNO_UNITyesyesOn Android, the plugin computes it from the latest HEIGHT and each WEIGHT in the time range, and writeHealthData() returns false for it.
BODY_TEMPERATUREDEGREE_CELSIUSyesyes
BODY_WATER_MASSKILOGRAMyes
ELECTRODERMAL_ACTIVITYSIEMENyes
HEART_RATEBEATS_PER_MINUTEyesyes
HEIGHTMETERyesyes
RESTING_HEART_RATEBEATS_PER_MINUTEyesyes
RESPIRATORY_RATERESPIRATIONS_PER_MINUTEyesyes
FORCED_EXPIRATORY_VOLUMELITERyesHealthKit's forcedExpiratoryVolume1
PERIPHERAL_PERFUSION_INDEXPERCENTyes
STEPSCOUNTyesyes
WAIST_CIRCUMFERENCEMETERyes
WALKING_HEART_RATEBEATS_PER_MINUTEyesRead-only
WEIGHTKILOGRAMyesyes
DISTANCE_WALKING_RUNNINGMETERyes
DISTANCE_SWIMMINGMETERyes
DISTANCE_CYCLINGMETERyes
FLIGHTS_CLIMBEDCOUNTyesyes
DISTANCE_DELTAMETERyes
MINDFULNESSMINUTEyes
SLEEP_ASLEEPMINUTEyesyesOn iOS, this refers to asleepUnspecified, and on Android this refers to STAGE_TYPE_SLEEPING (asleep but specific stage is unknown)
SLEEP_AWAKEMINUTEyesyes
SLEEP_AWAKE_IN_BEDMINUTEyes
SLEEP_DEEPMINUTEyesyesOn iOS, this refers to asleepDeep, which HealthKit has from iOS 16.0. On iOS 15, reads return no data, and writeHealthData() saves it as SLEEP_ASLEEP.
SLEEP_IN_BEDMINUTEyes
SLEEP_LIGHTMINUTEyesyesOn iOS, this refers to asleepCore, which HealthKit has from iOS 16.0. On iOS 15, reads return no data, and writeHealthData() saves it as SLEEP_ASLEEP.
SLEEP_OUT_OF_BEDMINUTEyes
SLEEP_REMMINUTEyesyesOn iOS, this refers to asleepREM, which HealthKit has from iOS 16.0. On iOS 15, reads return no data, and writeHealthData() saves it as SLEEP_ASLEEP.
SLEEP_UNKNOWNMINUTEyes
SLEEP_SESSIONMINUTEyes
WATERLITERyesyes
EXERCISE_TIMEMINUTEyesRead-only
WORKOUTNO_UNITyesyesSee workout types table below
WORKOUT_ROUTENO_UNITyesyesThe route of a workout. Write it with startWorkoutRoute(), insertWorkoutRouteData() and finishWorkoutRoute().
HIGH_HEART_RATE_EVENTNO_UNITyesRead-only, recorded by Apple Watch
LOW_HEART_RATE_EVENTNO_UNITyesRead-only, recorded by Apple Watch
IRREGULAR_HEART_RATE_EVENTNO_UNITyesRead-only, recorded by Apple Watch
HEART_RATE_VARIABILITY_RMSSDMILLISECONDyes
HEART_RATE_VARIABILITY_SDNNMILLISECONDyesRecorded by Apple Watch
HEADACHE_NOT_PRESENTMINUTEyes
HEADACHE_MILDMINUTEyes
HEADACHE_MODERATEMINUTEyes
HEADACHE_SEVEREMINUTEyes
HEADACHE_UNSPECIFIEDMINUTEyes
AUDIOGRAMDECIBEL_HEARING_LEVELyes
ELECTROCARDIOGRAMVOLTyesRead-only, recorded by Apple Watch
NUTRITIONNO_UNITyesyes
DIETARY_*GRAMyes38 nutrient types, such as DIETARY_PROTEIN_CONSUMED. DIETARY_ENERGY_CONSUMED uses KILOCALORIE. On Android, use NUTRITION.
INSULIN_DELIVERYINTERNATIONAL_UNITyes
MENSTRUATION_FLOWNO_UNITyesyes
WATER_TEMPERATUREDEGREE_CELSIUSyesiOS 16.0 or later. Apple Watch Ultra records it during dives and swimming workouts.
SLEEP_WRIST_TEMPERATUREDEGREE_CELSIUSyesiOS 16.0 or later, read-only
SKIN_TEMPERATUREDEGREE_CELSIUSyesOnly where isSkinTemperatureAvailable() returns true; elsewhere, reads and writeHealthData() throw a HealthException. The value is a SkinTemperatureHealthValue.
UNDERWATER_DEPTHMETERyesiOS 16.0 or later. Apple Watch Ultra records it during dives.
UV_INDEXCOUNTyesiOS 16.0 or later
LEAN_BODY_MASSKILOGRAMyesyes
WALKING_SPEEDMETER_PER_SECONDyesNot on Android: use SPEED, which has the same unit
SPEEDMETER_PER_SECONDyes
TOTAL_CALORIES_BURNEDKILOCALORIEyesAlso in dataTypeKeysIOS, but not supported on iOS: reads throw a PlatformException, and writeHealthData() returns false. On iOS, use ACTIVE_ENERGY_BURNED and BASAL_ENERGY_BURNED.
ACTIVITY_INTENSITYMINUTEyesDepends on the Health Connect version on the device, which the plugin does not check; without support, reads return no data. Write it with writeActivityIntensity(). The value is an ActivityIntensityHealthValue.
APPLE_MOVE_TIMESECONDyesREAD Only
APPLE_STAND_HOURHOURyesREAD Only. The value is HealthKit's HKCategoryValueAppleStandHour: 0 (stood) or 1 (idle), not a number of hours.
APPLE_STAND_TIMESECONDyesRead-only
BIRTH_DATENO_UNITyesRead-only HealthKit characteristic: the birth date in seconds since 1970, or 0 when it is not available
GENDERNO_UNITyesRead-only HealthKit characteristic: the HKBiologicalSex raw value
BLOOD_TYPENO_UNITyesRead-only HealthKit characteristic: the HKBloodType raw value

Workout types

All workout activity types (HealthWorkoutActivityType) and their platform availability. Workouts are represented as HealthDataType.WORKOUT; see Workouts for the value they carry.

In the platform columns, (yes) marks a type that the plugin stores as another workout type on that platform; the comments give the details.

When several names share one platform type, a read returns one of them, whatever name the workout was written with. On Android, getHealthDataFromTypes() returns every dancing workout as CARDIO_DANCE. On iOS, a run can come back as RUNNING or RUNNING_TREADMILL, and the name can change between app launches.

Workout typeApple HealthGoogle Health ConnectComments
AMERICAN_FOOTBALLyesyes
ARCHERYyes
AUSTRALIAN_FOOTBALLyesyes
BADMINTONyesyes
BARREyes
BASEBALLyesyes
BASKETBALLyesyes
BIKINGyesyesOn iOS this is CYCLING, but name changed here to fit with Android
BIKING_STATIONARYNot on either platform: on Android, writeWorkoutData() returns false
BOWLINGyes
BOXINGyesyes
CALISTHENICSyes
CARDIO_DANCEyes(yes)On Android this will be stored as DANCING
CLIMBINGyes
COOLDOWNyes
CORE_TRAININGyes
CRICKETyesyes
CROSS_COUNTRY_SKIINGyes(yes)On Android this will be stored as SKIING
CROSS_TRAININGyes
CURLINGyes
DANCINGyesNot on iOS: use CARDIO_DANCE or SOCIAL_DANCE
DISC_SPORTSyes
DOWNHILL_SKIINGyes(yes)On Android this will be stored as SKIING
ELLIPTICALyesyes
EQUESTRIAN_SPORTSyes
FENCINGyesyes
FISHINGyes
FITNESS_GAMINGyes
FLEXIBILITYyes
FRISBEE_DISCyes
FUNCTIONAL_STRENGTH_TRAININGyesNot on Android: use STRENGTH_TRAINING
GOLFyesyes
GUIDED_BREATHINGyes
GYMNASTICSyesyes
HAND_CYCLINGyes
HANDBALLyesyes
HIGH_INTENSITY_INTERVAL_TRAININGyesyes
HIKINGyesyes
HOCKEYyes
HUNTINGyes
ICE_SKATINGyes
JUMP_ROPEyes
KICKBOXINGyes
LACROSSEyes
MARTIAL_ARTSyesyes
MIND_AND_BODYyes
MIXED_CARDIOyes
PADDLE_SPORTSyes
PARAGLIDINGyes
PICKLEBALLyes
PILATESyesyes
PLAYyes
PREPARATION_AND_RECOVERYyes
RACQUETBALLyesyes
ROCK_CLIMBINGyesNot on iOS: use CLIMBING
ROWINGyesyes
ROWING_MACHINEyes
RUGBYyesyes
RUNNINGyesyes
RUNNING_TREADMILLyesNot on iOS: use RUNNING
SAILINGyesyes
SCUBA_DIVINGyes
SKATINGyesyesOn iOS this will be stored as SKATING_SPORTS
SKIINGyesNot on iOS: use CROSS_COUNTRY_SKIING or DOWNHILL_SKIING
SNOW_SPORTSyes
SNOWBOARDINGyesyes
SNOWSHOEINGyes
SOCCERyes
SOCIAL_DANCEyes(yes)On Android this will be stored as DANCING
SOFTBALLyesyes
SQUASHyesyes
STAIR_CLIMBINGyesyes
STAIR_CLIMBING_MACHINEyes
STAIRSyes
STEP_TRAININGyes
STRENGTH_TRAININGyesNot on iOS: use FUNCTIONAL_STRENGTH_TRAINING or TRADITIONAL_STRENGTH_TRAINING
SURFINGyesyesOn iOS this is SURFING_SPORTS, but name changed here to fit with Android
SWIMMINGyesNot on Android: use SWIMMING_OPEN_WATER or SWIMMING_POOL
SWIMMING_OPEN_WATER(yes)yesOn iOS this will be stored as SWIMMING
SWIMMING_POOL(yes)yesOn iOS this will be stored as SWIMMING
TABLE_TENNISyesyes
TAI_CHIyes
TENNISyesyes
TRACK_AND_FIELDyes
TRADITIONAL_STRENGTH_TRAININGyesNot on Android: use STRENGTH_TRAINING
UNDERWATER_DIVINGyesiOS 17.0 or later: on earlier versions, writeWorkoutData() throws a PlatformException
VOLLEYBALLyesyes
WALKINGyesyes
WALKING_TREADMILLNot on either platform: on Android, writeWorkoutData() returns false
WATER_FITNESSyes
WATER_POLOyesyes
WATER_SPORTSyes
WEIGHTLIFTINGyes
WHEELCHAIRyesNot on iOS: use WHEELCHAIR_RUN_PACE or WHEELCHAIR_WALK_PACE
WHEELCHAIR_RUN_PACEyes(yes)On Android this will be stored as WHEELCHAIR
WHEELCHAIR_WALK_PACEyes(yes)On Android this will be stored as WHEELCHAIR
WRESTLINGyes
YOGAyesyes
OTHERyesyes

Units

Each type maps to a default unit through dataTypeToUnit, for example HEART_RATE → BEATS_PER_MINUTE and WEIGHT → KILOGRAM:

final unit = dataTypeToUnit[HealthDataType.HEART_RATE]; // BEATS_PER_MINUTE

PERCENT values are numbers from 0 to 100 on Android, as in Health Connect, and fractions from 0 to 1 on iOS, as in HealthKit. In reads and writes, an oxygen saturation of 98% is 98 on Android and 0.98 on iOS.

When you read data with getHealthDataFromTypes(), you can request a preferred unit per type in preferredUnits:

  • Android: the plugin converts only WEIGHT to POUND, HEIGHT to CENTIMETER or INCH, BODY_TEMPERATURE and SKIN_TEMPERATURE to DEGREE_FAHRENHEIT or KELVIN, and BLOOD_GLUCOSE to MILLIMOLES_PER_LITER. For other units, the values stay in the default unit, but the data points report the requested unit.
  • iOS: HealthKit converts the values to any unit of the same kind, such as POUND for WEIGHT. The plugin does not support CENTIMETER and MILLIMOLES_PER_LITER on iOS. When the time range holds data, these units and units of another kind make HealthKit throw an exception, which crashes the app.

Sleep and headache categories

For the categorical sleep and headache types and for MINDFULNESS, the value is the length of the interval from dateFrom to dateTo in minutes.

Workouts

A workout is a HealthDataType.WORKOUT data point with a WorkoutHealthValue, which may include:

  • workoutActivityType
  • totalEnergyBurned (+ unit)
  • totalDistance (+ unit)
  • totalSteps (+ unit, Android only)

On Android, workoutSummary is null; on iOS, the data point also has a workoutSummary.

Special data

TypeHandling
ECG (ELECTROCARDIOGRAM)Parses the voltage series, average heart rate, sampling frequency, and classification.
Nutrition (NUTRITION)Supports a wide set of macro- and micronutrients.
Menstruation flow (MENSTRUATION_FLOW)Normalizes platform-specific values.

Full enums

The complete enums and mappings are defined in the plugin's 13.3.2 source on GitHub:

The generated enum reference is in the API reference on pub.dev.

See also

Data points

Read health data.

Numeric data

Write health data.

Permissions

Request access to these data types.

Quick links

Page · DocumentationCARP DocumentationPage · DocumentationIntroductionPage · DocumentationQuickstartPage · DocumentationTerminologyPage · DocumentationArchitecture