what is new in healthkit

Asked on 2025-11-21

@wwdc25

1 search

At WWDC 2025, Apple introduced new features in HealthKit, particularly focusing on the Medications API. Here are the key updates:

  1. Medications API: HealthKit now includes a Medications API that allows apps to read medications and dose events. This includes new objects like HKUserAnnotatedMedication and HKMedicationDoseEvent, which represent medications and their doses, respectively. Apps can use new query descriptors and queries to fetch this data (Meet the HealthKit Medications API).

  2. Medication Tracking: Users can add medications through the Health app, set up reminder schedules, and log doses. The system can notify users to log their medications, and they can choose to mark them as taken, skipped, or snooze the notification (Meet the HealthKit Medications API).

  3. Authorization Management: The Health app now allows users to manage authorization for medications directly within the app, making it easier for apps to access newly added medications without additional work (Meet the HealthKit Medications API).

  4. Anchored Object Queries: These queries are used to keep app data up-to-date with HealthKit, ensuring that apps reflect the most recent data logged by users (Meet the HealthKit Medications API).

These updates aim to enhance the way apps interact with medication data, providing more robust tools for developers to create health-related applications.