如果你用的是Apple Watch,是否需要先打开Health App同步数据,然后再打开自己的healthkit app获取最新数据?

If you are using a Apple Watch, do you first need to open the Health App to sync data and then open your own healthkit app to get the latest data?

问题是我的应用程序没有获取最新的步数数据,除非我先进入健康应用程序,然后再转到我的应用程序。 Apple Watch 是否不会自动与 Apple Health 同步,或者它们是 Healthkit API 中强制同步的解决方法?

HealthKit 数据会在后台定期从 Apple Watch 同步到您的 phone。此外,启动健康应用程序、Activity 应用程序或任何具有实时 HKHealthStore 的应用程序也会触发同步。但是,没有编程方式来触发同步。