This question is locked. New answers and comments are not allowed.
Hello ,
With your help I have created and added an external plugin in iOS. My questions is . When I print log immediately after creating this.testSDKInstance it ok . But when all initialized in compilationHandler , when print this.testSDKInstance its returning undefined. If you have an idea is it something iOS specific or is it result from marshaling.
01.
declare const TestSDK:any ;
02.
03.
export class TestModel extends Observable {
04.
05.
public testSDKInstance ;
06.
07.
public create ()
08.
{
09.
this
.testSDKInstance =
new
TestSDK() ;
10.
console.log (
"Instance"
+
this
.testSDKInstance) ;
11.
this
.testSDKInstance.setAppKeyAndSecretWithCompletion
12.
(
"aaa"
,
"sss"
,
this
.completionHandler);
13.
}
14.
15.
public completionHandler (isAuth:any, err:any):void {
16.
if
(isAuth) {
17.
console.log(
"Yupiii authorized"
+
this
.testSDKInstance;
18.
}
19.
}