【问题标题】:How to import steps using HealthKit from Apple watch in offline mode?如何在离线模式下从 Apple Watch 导入使用 HealthKit 的步骤?
【发布时间】:2017-09-18 12:17:15
【问题描述】:

只有在与 iPhone 同步后,才能访问通过 Apple Watch 报告的步数。有什么方法可以在离线模式下将 HealthKit 步数数据复制到我自己的手表应用程序中(手表未与 iPhone 连接)。

【问题讨论】:

    标签: ios healthkit watchos


    【解决方案1】:

    所有用于查询步数数据的 HealthKit API 都可以在 watchOS 上使用。只需执行与您的手机应用程序类似的操作,但在 WatchKit 扩展代码中。

    【讨论】:

      猜你喜欢
      • 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
      相关资源
      最近更新 更多