我的代码在这里,
// app.component.ts
public TestFairy: TestFairy;
platform.ready().then(() => {
TestFairy.begin(APP TOKEN);
...
});
通过TestDairy的错误
试试这个
// 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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句