healthkit-integration

Configure HealthKit entitlements, Info.plist entries, and async/await authorization flows.

1|Updated Aug 19, 2025
One-click install
npx skills add https://github.com/Maduixa/Glasstic --skill healthkit-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthkit-integration
Source: https://github.com/Maduixa/Glasstic/tree/main/.claude/skills/healthkit-integration
Command: npx skills add https://github.com/Maduixa/Glasstic --skill healthkit-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HealthKit integration enables iOS apps to securely access health data by providing proper entitlements, Info.plist keys, and a robust authorization flow, reducing setup time and misconfigurations.

Core Features & Use Cases

  • Entitlements & Info.plist: Ensure correct capabilities and string keys for HealthKit access.
  • Authorization & Data Queries: Implement async/await flows for user consent and health data queries (stats, anchored, observer).
  • Background Delivery & Workouts: Support background updates and workout session data retrieval for responsive apps.

Quick Start

Configure your project with the required entitlements and Info.plist entries, then implement the authorization flow to request access to HealthKit data.

Frequently Asked Questions about healthkit-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure HealthKit entitlements and Info.plist keys for iOS?

To configure HealthKit integration for iOS, you must add the required app entitlements and Info.plist permission strings. This setup enables your app to request secure access to health data and prevents misconfigurations during development.

How do I implement HealthKit authorization flow using async/await in Swift?

Implementing HealthKit authorization with async/await involves requesting user consent for specific data types before performing queries. This secure authorization flow ensures your iOS app only accesses health data after explicit user permission is granted.

What query patterns are available for retrieving HealthKit workouts and stats?

Available HealthKit query patterns for retrieving workouts and stats include stats queries, anchored queries, and observer queries. These patterns allow you to retrieve workout session data and health statistics efficiently, supporting responsive iOS applications.

Does HealthKit support background delivery for workout sessions on iOS?

Yes, HealthKit supports background delivery for workout sessions on iOS. By implementing background updates, your app can receive workout session data and health changes responsively even when not actively running in the foreground.

Why are my HealthKit queries returning zero results after authorization?

HealthKit queries returning zero results after authorization often indicate missing Info.plist permission strings or incorrect entitlements. Verifying your secure authorization flow ensures the requested data types match the permissions explicitly granted by the user.