Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Plugin stopped executing in ionic 4 PLEASE HELP! #66

Open
pkitatta opened this issue Aug 29, 2019 · 0 comments
Open

Plugin stopped executing in ionic 4 PLEASE HELP! #66

pkitatta opened this issue Aug 29, 2019 · 0 comments

Comments

@pkitatta
Copy link

pkitatta commented Aug 29, 2019

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant