window.AccountKitPlugin is undefined

I tried to add the accountkit plugin to my app , and it was added successfully ,
because when i typed ionic cordova plugin , it printed :

cordova-plugin-accountkit 1.4.0 "Cordova AccountKit"

but when i try to use it here :

  tryCall() {
    (<any>window).AccountKitPlugin.loginWithPhoneNumber({
      useAccessToken: true,
      defaultCountryCode: "US",
      facebookNotificationsEnabled: true,
    }, data => {
    (<any>window).AccountKitPlugin.getAccount(
      info => console.log(info),
      err => console.log(err));
    });
  }

it says that : window.AccountKitPlugin is undefined