[有人尝试将HealthKit集成到Titanium / Appcelerator App吗?我正在尝试使用Hyperloop,并且根据苹果的文档规范(或多或少)编写了代码-https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorizationtosharetypes?language=objc
import { HealthKit } from 'HealthKit';
let hk = new HealthKit()
hk.requestAuthorizationToShareTypes();
但是它给了我未定义的函数requestAuthorizationToShareTypes()。
此示例也是如此:https://developer.apple.com/documentation/healthkit/setting_up_healthkit和我的代码:
let hk = new HealthKit()
hk.requestAuthorization([],[], function (e) {});
它也给出相同的“未定义函数”错误。
有人在Appcelerator / Titanium框架中有使用HealthKit的示例吗?
ps.s。我发现的旧钛合金模块也不起作用:http://gitt.io/component/ti.healthkit