OpenWorkoutTracker icon indicating copy to clipboard operation
OpenWorkoutTracker copied to clipboard

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

Open docdude opened this issue 1 year ago • 6 comments

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

  • OS: WatchOs 10.6

**Smartphone

  • Device: iphone 11pro max
  • OS: IOS 17.6.1

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

docdude avatar Sep 11 '24 16:09 docdude

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 avatar Sep 17 '24 21:09 msimms

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.

msimms avatar Sep 17 '24 21:09 msimms

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: @.***>

docdude avatar Sep 17 '24 23:09 docdude

Swim stroke isn't really implemented. Like, at all. That's on the list of things that I never seem to get around to.

BTW, I also found a number of API updates that are needed for HealthKit when I was looking at the code earlier.

msimms avatar Sep 20 '24 22:09 msimms

Yeah Been looking at those.  If you don’t mind me playing with the stroke  implementationI can send updates for you to look atJuan Darkness 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 20, 2024, at 3:38 PM, Mike Simms @.***> wrote: Swim stroke isn't really implemented. Like, at all. That's on the list of things that I never seem to get around to. BTW, I also found a number of API updates that are needed for HealthKit when I was looking at the code earlier.

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

docdude avatar Sep 20 '24 22:09 docdude

Feel free to work on the swim stroke implementation all you want. I have so many things on my plate right now that I probably won't get to it before the heat death of the universe. Code is in the C/C++ backend

msimms avatar Sep 23 '24 19:09 msimms