【问题标题】:Start an AppleWatch Workout when GPS-tracking is started on iPhone在 iPhone 上启动 GPS 跟踪时启动 Apple Watch Workout
【发布时间】:2018-05-04 07:45:15
【问题描述】:

为了让我的健身应用程序的用户在 iPhone 上使用我们的应用程序时也能记录他们的心率,最好能自动启动我们的 AppleWatch 应用程序并从那里检索用户的心率。这有可能吗?我很确定我曾经找到过一个 API,但再也找不到了。

【问题讨论】:

    标签: ios watchkit apple-watch healthkit


    【解决方案1】:

    供大家搜索

    这是一个方法 HKHealthStore:startWatchAppWithWorkoutConfiguration:completion:

    见: https://developer.apple.com/documentation/healthkit/hkhealthstore/1648358-startwatchappwithworkoutconfigur

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多