msimms / OpenWorkoutTracker

A workout tracker for iOS that includes cycling, running, as well as strength exercises. Supports Bluetooth sensors.
Other
49 stars 3 forks source link

No Heart rate shown in any activity on apple watch simulator or real device. #52

Open docdude opened 1 week ago

docdude commented 1 week ago

Compiled and deployed your app on MacOS 14.6.1, XCode 15.4. Running on Apple Watch Ultra device or simulator. No Healthkit data is being shown, i.e. no heart rate, stroke, calorie. Mainly using the swim activity but bike activity also has not values populating on the device or simulator?

Screenshots image

**Apple Watch Ultra

**Smartphone

Any guidance would be appreciated. I'm comfortable with C, C++ but come from linux background. Learning Xcode.

msimms commented 1 day ago

There's definitely something that got broken with one of the recent iOS updates. Will have to look into it. As for the simulator, the simulator doesn't simulate the heart rate sensor, which makes testing harder since I have to use actual hardware.

msimms commented 1 day ago

Apple writes the data from the wrist-based heart rate sensor to HealthKit, the app just subscribes to these updates so the issue will probably be somewhere in there.

docdude commented 1 day ago

I got the heart rate sensor on watch and in simulator just needs the heart rate switch in settings on the watch turned on.  Now the swim stroke isn’t workingDarkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that.Martin Luther King, Jr.On Sep 17, 2024, at 2:12 PM, Mike Simms @.***> wrote: Apple writes the data from the wrist-based heart rate sensor to HealthKit, the app just subscribes to these updates so the issue will probably be somewhere in there.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>