在Appcelerator / Titanium中使用HealthKit

问题描述 投票:0回答:1

[有人尝试将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

titanium appcelerator healthkit appcelerator-hyperloop
1个回答
0
投票
您最终解决了这个问题吗?我的旧模块也没有运气。
© www.soinside.com 2019 - 2024. All rights reserved.