VO2 max
vo2Max in Apple HealthKit. Check what the API exposes and what to look for when this data is missing or differs between apps.
API contract
- Identifier
vo2Max- Type family
- quantity
- Identifier introduced
- iOS 11.0
- Documented value style
- discrete
Look up the type in Swift
Use the identifier with an SDK and OS supporting this type. Check that HealthKit is available and configure authorization in your app before requesting access.
import HealthKit
let type = HKObjectType.quantityType(forIdentifier: .vo2Max)What to check when the value is missing
Read the stored quantity with a compatible unit. Keep the timestamp and origin alongside the normalized value for troubleshooting.
An empty query can mean your read access is limited, the writer used another type or the selected time window contains no matching data. Start with an entry of a known date and check the corresponding type in the Health app.
Use supported devices and authorized data for verification. The API contract alone does not establish which third-party apps write this type.
Compare with Health Connect
VO2 max Vo2MaxRecord
Both APIs can report VO2 max. Keep the original measurement method when available and compare results from like procedures before treating them as a single series.
More in Activity and exercise
API documentation checked . Examples are developer starting points based on the published API.