从“安妮市场”下载的TalkingData GameAnalyticsSDK xcode编译无法通过,从TalkingData官方下了一个新人SDK,编译通过,运行后TalkingData GameAnanlytics集成届面也能收到数据,但是貌似数据格式不对,集成操作完成不了。具体表现如下:
TS代码:
const {ccclass, property} = cc._decorator;
@ccclass
export default class Helloworld extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
private analyticsMgr: anysdk.ProtocolAnalytics;
onLoad(): void {
this.analyticsMgr = anysdk.agentManager.getAnalyticsPlugin();
this.analyticsMgr.startSession();
}
onDestroy(): void {
this.analyticsMgr.stopSession();
}
start () {
// init logic
this.label.string = this.text;
// this.analyticsMgr.
this.analyticsMgr.setAccount({
"accountId": "this.profile.userID",
"accountType": 0,
"accountName": "",
"userid": "this.profile.userID",
"level": 100,
"gender": 0,
"age": 0,
"gameServer": "local"
});
}
}
talkingData显示:
另外xcode输出log:
rg0: onReward
2019-02-15 15:28:15.912162+0800 hello_world-mobile[22549:6397131] error:the parameter is not complete
arg0: onPurchase
2019-02-15 15:28:20.412508+0800 hello_world-mobile[22549:6397131] error:the parameter is not complete
arg0: onChargeRequest
2019-02-15 15:28:25.641273+0800 hello_world-mobile[22549:6397131] error:the parameter is not complete
arg0: onChargeSuccess
2019-02-15 15:28:25.641395+0800 hello_world-mobile[22549:6397131] TalkingData: onChargeSuccess orderId:abc
2019-02-15 15:28:25.645476+0800 hello_world-mobile[22549:6397308] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”, descriptor: <CTServiceDescriptor
是什么原因啊????????