ios - Do I need an Apple Watch app to communicate between iPhone and Apple Watch? -
i have iphone app , want heart rate information paired apple watch in realtime. question need watch version (or interface) of iphone app on watch in order communicate watch , information in realtime?
can please walk me through steps in order make connection , realtime data watch iphone? need use healthkit or watch connectivity api in order this? confused @ point.
thanks.
this question answered on @ apple developer forums
basically, watch video. if skip ~32:00 minutes, keynote speaker called mark implementing healthkit in it's watch app. bpm monitored after authorizing on iphone app may use healthkit , refresh heartbeat every ~4 seconds.
high level overview:
- yes, need watch version of iphone app realtime data.
- create companion app, , request read access healthkit heart rate measurement.
- then start workout session app
you may find link helpful sample code: watch os 2.0 beta: access heart beat rate
Comments
Post a Comment