【发布时间】:2017-10-01 18:38:32
【问题描述】:
如何在 iPhone 上的 CordovaApp 中请求用户对 WorkoutRoute 的许可?
意思是通过HKWorkoutRouteBuilder.insertRouteData将锻炼位置写入HealthKit,这是由原生WatchKit App完成的。
我试过(通过使用 telerik.plugin.healthkit)
var supportedTypes = [
'HKQuantityTypeIdentifierActiveEnergyBurned',
'HKQuantityTypeIdentifierHeartRate',
'HKQuantityTypeIdentifierDistanceWalkingRunning',
'HKWorkoutRouteTypeIdentifier',
'HKWorkoutTypeIdentifier'
];
window.plugins.healthkit.requestAuthorization(...
但到目前为止还没有机会获得:锻炼路线(图像中标记为棕色)-这是来自 Speedysloth 示例:
【问题讨论】:
-
请说明您使用的 healthkit 插件。正在创建自己的?
-
我正在使用来自 GitHub 的“com.telerik.plugins.healthkit”(不,我是初学者,不是自己创建的)。
标签: cordova permissions telerik healthkit