coolioxlr / watchOS-2-heartrate

watchOS 2.0 healthkit, heartrate streaming, start workout session
337 stars 49 forks source link

Session not stopping on device #11

Closed ajoshdee closed 8 years ago

ajoshdee commented 9 years ago

the session is not ending when stopped, heart rate is still updating

tysun commented 8 years ago

Actually it only appears like the stop button doesn't work because the heart rate is still animating and samples are still updating even when you press stop.

It would be great if we could stop this. I will work on it.

coolioxlr commented 8 years ago

You can also use https://developer.apple.com/library/ios/samplecode/ActivityRings/Introduction/Intro.html as sample. Only difference is I query the heartrate and Apple's example query active energy.

coolioxlr commented 8 years ago

Hi @tysun , Please check my new sample for WatchOS3. Problem is fixed over there. Let me know if you have any other question. Problem is I am recreating the query when calling the end workout which I should not.