coolioxlr / watchOS-2-heartrate

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

HealthKit Authentication not returning to watch. #4

Open ajoshdee opened 9 years ago

ajoshdee commented 9 years ago

I'm starting the workout session in the willActivate method. After allowing the read permissions in the parent app, the label is not showing bpm. Any solution to this? thanks in advance.

coolioxlr commented 9 years ago

don't think u should start workout session in willActivate. willActivate will get called every time when u raise your wrist or when the screen appears

ajoshdee commented 9 years ago

The sensor doesn't turn off when I exit my app and it will cause battery to drain, so i have to stop the workout session in the didDeactivate method. So when I open the app it will start again in willActivate. Is this the correct implementation?

ajoshdee commented 9 years ago

I want to start heart rate monitor at the start of my app. So after getting authorization, The heart rate label doesn't get updated.

basememara commented 8 years ago

I ran into this too and seems like it works in the simulator but not the device (strange not the other way around like usual).

https://forums.developer.apple.com/thread/7077