Access and share health and fitness data while maintaining the user’s privacy and control.
- iOS 8.0+
- UIKit for Mac 13.0+Beta
- watchOS 2.0+
HealthKit provides a central repository for health and fitness data on iPhone and Apple Watch. With the user’s permission, apps communicate with the HealthKit store to access and share this data.
Creating a complete, personalized health and fitness experience includes a variety of tasks:
Collecting and storing health and fitness data
Analyzing and visualizing the data
Enabling social interactions
HealthKit apps take a collaborative approach to building this experience. Your app does not need to provide all of these features. Instead, you can focus just on the subset of tasks that most interests you.
For example, users can select their favorite weight-tracking, step-counting, and health challenge app, each calibrated to their personal needs. Because HealthKit apps freely exchange data (with user permission), the combined suite provides a more customized experience than any single app on its own. For example, when a group of friends joins a daily step-counting challenge, each person can use their preferred hardware device and app to track their steps, while everyone in the group uses the same social app for the challenge.
HealthKit is also designed to manage and merge data from multiple sources. For example, users can view and manage all of their data in the Health App, including adding data, deleting data, and changing an app’s permissions. Therefore, your app needs to handle these changes, even when they occur outside your app.