health_connector_hk_ios


📖 Overview

health_connector_hk_ios is the iOS platform implementation for the Health Connector plugin. It provides integration with Apple's HealthKit framework, enabling Flutter apps to read, write, and aggregate health data on iOS devices.

✨ Features

Feature Description
🔐 Permission Management Request read/write permissions for health data types
📖 Reading Health Data Read a single health record by ID or multiple health records within a date/time range with pagination
✍️ Writing Health Data Write health records with metadata
🔄 Updating Health Records Modify existing records (delete-then-insert pattern)
🗑️ Deleting Health Records Remove specific records by their IDs or within a date/time range
Aggregating Health Data Sum/Avg/Min/Max Aggregation

🎯 Requirements

  • Flutter >=3.3.0
  • Dart >=3.9.2
  • iOS >=15.0
  • Xcode >=14.0

🤔 Why iOS 15.0?

Although Swift's concurrency features can be back-deployed to iOS 13.0+ using Xcode 13.2+, we intentionally set iOS 15.0 as the minimum supported version to ensure:

  • Full access to the native Swift concurrency runtime without back-deployment shims
  • A simpler and more reliable runtime environment with no compatibility layers
  • Better long-term maintainability and reduced technical debt

Note: HealthKit itself has been available since iOS 8.0. The iOS 15.0 requirement is a conscious architectural decision driven by native concurrency support - not a limitation of HealthKit.


🤝 Contributing

Contributions are welcome!

To report issues or request features, please visit our GitHub Issues.

Libraries

health_connector_hk_ios
iOS HealthKit implementation for health_connector.