-
-
Notifications
You must be signed in to change notification settings - Fork 182
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The app requests read permission for .heartRate
(HealthGPTAppDelegate.swift:48) but the fetcher queries .restingHeartRate
(HealthDataFetcher.swift:122). These are distinct HKQuantityTypeIdentifier
values in HealthKit.
This causes fetchLastTwoWeeksRestingHeartRate() to silently return no
data, since the user was never prompted to authorize .restingHeartRate
access.
Reproduction
- Ensure you have resting heart rate data in Apple Health (verify in Health →
Browse → Heart → Resting Heart Rate) - Install HealthGPT and complete onboarding
- Grant all HealthKit permissions when prompted
- Note that the permission dialog asks for "Heart Rate" but never for
"Resting Heart Rate" - Open a chat and ask about your resting heart rate
- The LLM no Heart Rate data despite data existing in Apple Health
Expected behavior
The app should display the user's actual resting heart rate values (e.g., "52
bpm") in the health summary provided to the LLM, when that data exists in
Apple Health.
Code of Conduct
- I agree to follow this project's Code of Conduct and Contributing Guidelines
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working