cordova-plugin-accountkit icon indicating copy to clipboard operation
cordova-plugin-accountkit copied to clipboard

Plugin stopped executing in ionic 4 PLEASE HELP!

Open pkitatta opened this issue 5 years ago • 0 comments

@gurisko @denyo @eddy-lau Hi, thanks for this awesome plugin. I have used it in my ionic 3 app for over a year. I am migrating to ionic 4 and the plugin is completely not working. It's not even giving any error. Please help us on this issue. I prefer this plugin to the firebase phonenumber auth because some one doesn't have to put in country code and it can detect user phone number to android (I think) 7 and above.

As @sreerajkarippala states, the app stops execution when it hits this piece of code:

(<any>window).AccountKitPlugin.loginWithPhoneNumber({
      useAccessToken: true,
      defaultCountryCode: 'IN',
      facebookNotificationsEnabled: true,
      initialPhoneNumber: [this.phone_code, this.phone_number]
    }, (data) => {
      (<any>window).AccountKitPlugin.getAccount(
        (accountData) => {
          console.log(accountData);
        },
        (accountError) => {
          console.log(accountError);
        }
      );
    }, (error) => {
      console.log(error);
    });
Ionic:

   Ionic CLI                     : 5.2.3 (C:\Users\Paul\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.6.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 25 other plugins)

Utility:

   cordova-res : 0.6.0
   native-run  : 0.2.8

System:

   Android SDK Tools : 26.1.1 (C:\Users\Paul\AppData\Local\Android\Sdk)
   NodeJS            : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.10.2
   OS                : Windows 10

Thanks.

pkitatta avatar Aug 29 '19 10:08 pkitatta