BloodGlucoseRecord: Health Connect blood glucose data
Read from Google’s documentation on 2026-10-03 · Google’s reference page last updated 2026-06-24
BloodGlucoseRecord is Health Connect's blood glucose record — an Instantaneous record in Google's Vitals category. Its read permission is android.permission.health.READ_BLOOD_GLUCOSE; its write permission is android.permission.health.WRITE_BLOOD_GLUCOSE. Google's reference defines no aggregate metrics on it, so it is read with readRecords rather than aggregate. Mandatory fields per Google's table: level, specimenSource, mealType, relationToMeal, metadata and time.
What Google says BloodGlucoseRecord is
Captures the concentration of glucose in the blood. Each record represents a single instantaneous blood glucose reading.
Quoted from Google’s BloodGlucoseRecord Jetpack reference, last updated 2026-06-24, read 2026-10-03.
- Class
androidx.health.connect.client.records.BloodGlucoseRecord- Google's category
- Vitals
- Record type
- Instantaneous
- Unit class
- none named in Google's table
- Mandatory fields
levelspecimenSourcemealTyperelationToMealmetadatatime- Added in (Jetpack)
1.1.0
Permissions
The exact strings Google’s data-types table declares for BloodGlucoseRecord. Google’s page: “Before requesting any permissions, your app must declare them in the manifest.”
| Access | Permission string | Framework reference |
|---|---|---|
| Read | android.permission.health.READ_BLOOD_GLUCOSE | API 34 · U Ext 7 |
| Write | android.permission.health.WRITE_BLOOD_GLUCOSE | API 34 · U Ext 7 |
<uses-permission android:name="android.permission.health.READ_BLOOD_GLUCOSE" />
<uses-permission android:name="android.permission.health.WRITE_BLOOD_GLUCOSE" />import androidx.health.connect.client.permission.HealthPermission
import androidx.health.connect.client.records.BloodGlucoseRecord
val permissions = setOf(
HealthPermission.getReadPermission(BloodGlucoseRecord::class),
HealthPermission.getWritePermission(BloodGlucoseRecord::class),
)The 7 fields of BloodGlucoseRecord
Types and descriptions as Google’s reference prints them. The range column quotes Google’s own range annotation or sentence; a dash means Google states none, which is not the same as no validation.
| Field | Type | Allowed range | Google’s description |
|---|---|---|---|
levelmandatory | BloodGlucose | Valid range: 0-50 mmol/L. | Blood glucose level or concentration. Required field. Valid range: 0-50 mmol/L. |
mealTypemandatory= MealType.MEAL_TYPE_UNKNOWN | Int | — | Type of meal related to the blood glucose measurement. Optional, enum field. Allowed values: MealType. |
metadatamandatory | Metadata | — | Set of common metadata associated with the written record. |
relationToMealmandatory= RELATION_TO_MEAL_UNKNOWN | Int | — | Relationship of the meal to the blood glucose measurement. Optional, enum field. Allowed values: RelationToMeal. |
specimenSourcemandatory= SPECIMEN_SOURCE_UNKNOWN | Int | — | Type of body fluid used to measure the blood glucose. Optional, enum field. Allowed values: SpecimenSource. |
timemandatory | Instant | — | Time the record happened. |
zoneOffset | ZoneOffset? | — | User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent. |
Constants
The 12 const val values Google’s reference lists on BloodGlucoseRecord, with the integer each maps to.
| Constant | Value | Google’s description |
|---|---|---|
BloodGlucoseRecord.RELATION_TO_MEAL_AFTER_MEAL | 4 | — |
BloodGlucoseRecord.RELATION_TO_MEAL_BEFORE_MEAL | 3 | — |
BloodGlucoseRecord.RELATION_TO_MEAL_FASTING | 2 | — |
BloodGlucoseRecord.RELATION_TO_MEAL_GENERAL | 1 | — |
BloodGlucoseRecord.RELATION_TO_MEAL_UNKNOWN | 0 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_CAPILLARY_BLOOD | 2 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_INTERSTITIAL_FLUID | 1 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_PLASMA | 3 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_SERUM | 4 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_TEARS | 5 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_UNKNOWN | 0 | — |
BloodGlucoseRecord.SPECIMEN_SOURCE_WHOLE_BLOOD | 6 | — |
Read BloodGlucoseRecord in Kotlin
The shape of Google’s own read example, with BloodGlucoseRecord and its names filled in. Get the client with HealthConnectClient.getOrCreate(context) after checking getSdkStatus.
import androidx.health.connect.client.HealthConnectClient
import androidx.health.connect.client.records.BloodGlucoseRecord
import androidx.health.connect.client.request.ReadRecordsRequest
import androidx.health.connect.client.time.TimeRangeFilter
import java.time.Instant
suspend fun readBloodGlucose(
client: HealthConnectClient,
startTime: Instant,
endTime: Instant,
): List<BloodGlucoseRecord> {
val response = client.readRecords(
ReadRecordsRequest(
BloodGlucoseRecord::class,
timeRangeFilter = TimeRangeFilter.between(startTime, endTime),
)
)
// One page of up to pageSize records (default 1000); follow
// response.pageToken for the rest.
return response.records
}Setting up the client, the permission flow and Play Console declaration: integrating Health Connect step by step.
HealthKit counterpart
No verified HealthKit counterpart. The cross-platform matrix only pairs metrics checked against both Apple’s and Google’s documentation, and BloodGlucoseRecord is not among them yet. A similarly named Apple type may exist on the HealthKit reference, but a name match is not a verified mapping.
The metric on other platforms
This guide lists BloodGlucoseRecord beside the types on the other platforms this site covers whose own descriptions name the same metric, each quoted, with how each one is read.
Questions
- What permission does BloodGlucoseRecord need?
- Google's Health Connect data-types table (read 2026-10-03) declares android.permission.health.READ_BLOOD_GLUCOSE for reading BloodGlucoseRecord and android.permission.health.WRITE_BLOOD_GLUCOSE for writing it, and says apps must declare permissions in the manifest before requesting them.
- Can you aggregate BloodGlucoseRecord with AggregateRequest?
- Not directly. As read on 2026-10-03, Google's Jetpack reference defines no AggregateMetric constants on BloodGlucoseRecord, so there is no metric to put in an AggregateRequest. Read the records with readRecords and a ReadRecordsRequest, and compute any summary yourself.
- What values does BloodGlucoseRecord.level accept?
- Google's reference types level as BloodGlucose. Its description reads: "Blood glucose level or concentration. Required field. Valid range: 0-50 mmol/L."
- Is BloodGlucoseRecord an interval, instantaneous or series record?
- Google's data-types table lists BloodGlucoseRecord as Instantaneous, and defines that column as indicating "whether the data is recorded at an instant in time or over an interval". Its mandatory fields are level, specimenSource, mealType, relationToMeal, metadata and time.
Other Vitals records
Sources checked
- Google — BloodGlucoseRecord (Jetpack reference) — last updated 2026-06-24 · read 2026-10-03
- Google — Health Connect data types · read 2026-10-03
- Google — HealthPermissions (framework reference) · read 2026-10-03
- Google — Read raw data (Health Connect guide) · read 2026-10-03
Google’s descriptions are quoted for identification; the page layout, the capsule and the cross-platform pairing are AIFitnessAPI’s. Generated from Google’s pages by a script, not typed by hand — the same data is behind every page in the Health Connect reference.