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.