标签: ios watchkit apple-watch health-kit
为了让我的健身应用程序的用户在iPhone上使用我们的应用程序时也能记录他们的心率,最好自动启动AppleWatch应用程序并从那里检索用户Heart-rate。这有点可能吗?我很确定我曾经找到过一次API,但再也找不到它了。
答案 0 :(得分:1)
对于每个人也在搜索
这是HKHealthStore的一种方法:startWatchAppWithWorkoutConfiguration:completion:
startWatchAppWithWorkoutConfiguration:completion:
请参阅: https://developer.apple.com/documentation/healthkit/hkhealthstore/1648358-startwatchappwithworkoutconfigur