我在我的HealthKit Swift应用程序中添加了iOS代码,但我得到了一个错误:override})
println("Health data is not available")}
错误发生=错误Domain=com.apple.healthkitCode=4“缺少com.apple.developer.healthkit权限”。User
Error Domain=com.apple.healthkit Code=5“事务块失败,没有错误。Description,Privacy - Health Records Usage Description,Privacy - Health Share Usage Description
我已经尝试删除HealthKitHealthKit UI从来没有显示过。检查隐私设置也不表明我曾经请求过。我认为HealthKit已经进入了一个糟糕的状态。
我正在尝试使用meteor中的Healthkit获取步骤计数,我已经使用命令meteor :com.telerik.plugins.Health but @0.3.5添加了cordova healthkit插件,并在IOS构建中添加了healthkit,但是当我检查window.plugins.healthkit或navigator.plugins.healthkit时,它返回false。
我的手表应用程序很容易从HealthKit的新updateHandler in HKAnchoredObjectQuery中读取新的心率数据。我需要的是某种方法来不断地同步设备之间的健康存储。这是一个主要问题,因为它破坏了HealthKit作为读取和写入健康数据的可靠的单一位置。
编辑: Apple报告雷达