Reputation: 533
I have an iPhone app and I want to get heart rate information from a paired Apple Watch in realtime. My question is that do I need the watch version (or interface) of my iPhone app on the watch in order to communicate with the watch and get information in realtime?
Can you please walk me through the steps in order to make this connection and get realtime data from the watch to the iPhone? Do I need to use healthkit or watch connectivity api in order to do this? I am confused at this point.
Thanks.
Upvotes: 2
Views: 272
Reputation: 669
This question is already answered over at Apple developer forums
Basically, watch this video. If you skip to ~32:00 minutes, the keynote speaker called Mark is implementing Healthkit in it's Watch App. The BPM is monitored after authorizing on your iPhone the app may use HealthKit and will refresh the heartbeat every ~4 seconds.
High level overview:
You may also find this SO link helpful for some sample code: Watch os 2.0 beta: access heart beat rate
Upvotes: 1