how to track mindfulness minutes
Asked on 2025-10-18
1 search
To track mindfulness minutes, you can use the HealthKit APIs introduced by Apple. Specifically, the "Explore wellbeing APIs in HealthKit" session at WWDC 2024 discusses how you can integrate mindfulness tracking into your app. You can log state of mind samples, which can include mindful minutes, using the HealthKit framework. This allows users to reflect on their mental wellbeing and track their mindfulness activities over time.
For more detailed information on how to implement this, you can refer to the Explore wellbeing APIs in HealthKit session, particularly the section on the State of Mind API.

Explore wellbeing APIs in HealthKit
Learn how to incorporate mental health and wellbeing into your app using HealthKit. There are new APIs for State of Mind, as well as for Depression Risk and Anxiety Risk. We’ll dive into principles of emotion science to cover how reflecting on feelings can be beneficial, and how State of Mind can be used to represent different types of mood and emotion.

What’s new in watchOS 26
Discover the new features in watchOS 26 and learn how to integrate them into your watchOS and iOS apps. Explore the ARM64 architecture, and dive into the new design system. We’ll also share updates for widgets and insights on how to bring controls to Apple Watch.

Enhanced suggestions for your journaling app
Find out how your journaling app can display journaling suggestions with richer content from the system. Explore new types of available content like state of mind data, reflection prompts, and support for third-party media content and motion-based activities.
