AATKit Ionic Binding
Release Notes
  • Start
    • Setup
    • Initialization
    • Consent
      • Managed Consent
  • Formats
    • Banner
    • Fullscreen (Interstitial)
  • Other
    • Events
    • Cordova Plugin Reference
Powered by GitBook
On this page
  1. Start

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,
    });

    ...
});

PreviousSetupNextConsent

Last updated 1 year ago