Initialization

Initialize AATKit

AATKit should be initialized as soon as possible, so the Ionic Binding project does it inside ngOnInit callback of app.component.ts file:

this.platform.ready().then(() => {
  console.log("[AATKit] platform is ready.");
  var aatkit = new AATKitIonic();

  aatkit.setDebugEnabled(true);
  aatkit.initWithConfiguration({
    "testModeAccountId": 136,
      "useGeoLocation": false,
    });

    ...
});

Last updated