Ionic Pro, Monitoring: Error: The cordova-plugin-ionic plugin is not installed

I am getting the same error console.error: the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors. when I run ionic cordova run android -lcs

So cordova should be available at that point, right?

When I run ionic cordova plugin add cordova-plugin-ionic --force I get

Plugin "cordova-plugin-ionic" already installed on android.

Plugin "cordova-plugin-ionic" already installed on browser.

Adding cordova-plugin-ionic to package.json

Saved plugin info for "cordova-plugin-ionic" to config.xml

When I run ionic cordova plugin list I get:

cordova-plugin-add-swift-support 1.7.0 "AddSwiftSupport"
cordova-plugin-app-preferences 0.99.3 "AppPreferences"
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-transfer 1.7.0 "File Transfer"
cordova-plugin-ionic 2.0.3 "IonicCordova"
cordova-plugin-media 3.0.1 "Media"
cordova-plugin-nativestorage 2.2.2 "NativeStorage"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.1.0 "OneSignal Push Notifications"

My Ionic Info:

cli packages: (/Applications/MAMP/htdocs/sparkles-android/node_modules)

    @ionic/cli-utils  : 1.17.0
    ionic (Ionic CLI) : 3.17.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.4
    Cordova Platforms  : android 6.3.0 browser 5.0.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node  : v8.2.0
    npm   : 5.5.1
    OS    : macOS Sierra
    Xcode : Xcode 8.3.2 Build version 8E2002

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Maybe it’s just because I am using live reload?

@juniethreatt Did you get this resolved? I’m having the same issue.

1 Like

Im getting the same issue with my BarcodeScanner.
I installed it perfectly and also native on Android&iOS it works, but in Ionic Pro im getting this Error as well.

I think its an Ionic Pro issue, since it doesnt change if you reinstall and resinstall the plugin again and again…

I just ignored it when live reload was on, and once I put the app in the play store and downloaded it that way, I saw that error monitoring was working like it should

Thanks. I’m seeing the same thing. Compiling it to a native build works as expected, but in live reload I get the error.

I also get this error running in an Android emulator (ionic cordova emulate android):

01-12 03:59:49.452 16568-16568/? I/chromium: [INFO:CONSOLE(1)] "the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors.", source: https://code.ionicframework.com/services/ionic-pro.min.js (1)

Monitoring is actually working though.

1 Like

I’m getting the same. I actually installed Cordova-plugin-ionic as per pro documentation but still DevApp quits with White screen and “unable to load page” error.

For me this error started happening after I started using livereload. And I think it has to do with livereload and the ionic native camera plugin I am using conflicting in some way. Once I stopped using the livereload option, my app loaded as I expected.

I fixed it by commenting as stated in the code

  handleError(err: any): void {
    Pro.monitoring.handleNewError(err);
    // Remove this if you want to disable Ionic's auto exception handling
    // in development mode.
   /**  Comment below code while developing*/
    // this.ionicErrorHandler && this.ionicErrorHandler.handleError(err);
  }