Can a Complication access Healthkit when the watch screen is off?

时间:2015-10-30 23:24:40

标签: swift watchkit core-motion watch-os-2 health-kit

If the watch screen is off and the periodic Complication reload happens, can HealthKit be accessed? What about CMPedometer?

2 个答案:

答案 0 :(得分:0)

是的,在定期更新期间,两个框架的数据都应该可以通过并发症来访问。

答案 1 :(得分:-1)

也许......

HealthKit是安全数据,如果设备被锁定,则无法访问。

然而,对于Watch,在我的测试中,HealthKit适用于以下情况:

  1. 手表戴在手腕上
  2. 手机解锁时手表设置为解锁(手腕检测开启。)
  3. 您解锁手机。
  4. 所以,基本上,如果您解锁手机并且手表解锁,它可以保持在手腕上解锁并允许HealthKit访问,直到它再次锁定。

    如果手表被锁定,HealthKit数据将无法使用。