1

我的代码在这里,

// app.component.ts

public TestFairy: TestFairy;

platform.ready().then(() => {
   TestFairy.begin(APP TOKEN);
   ...
});

它通过TestDairy的错误

4

2 回答 2

2

尝试这个

// app.componenet.ts

/// <reference path="../plugins/com.testfairy.cordova-plugin/www/testfairy.d.ts" />

在导入之后,添加以下行以导入 TestFairy

declare var TestFairy: TestFairy;

构造函数内部

platform.ready().then(() => {
TestFairy.begin(APP TOKEN);
  ...
});

请参考此链接:https ://docs.testfairy.com/Integrations/Cordova.html

于 2016-12-16T04:55:36.473 回答
0

请参阅 ionic 的 TestFairy 文档。

还建议添加此插件以在 ios 10.x 上启用日志:

离子插件添加科尔多瓦插件控制台

谢谢,尤瓦尔。

于 2017-01-17T13:32:09.080 回答