"ERROR", source: http://localhost:8080/build/vendor.js

Good morning, guys.
I have seen that this issue was already open but I do not see that they resolve it and I have been trying to solve it for 2 days but I still can not.
My application runs like a charm in Chrome and in Android 6,7,8 but in 5 down it loads and everything is fine but it gives me the following “ERROR”, source: http: // localhost: 8080 / build / vendor.js
Which is totally false since that js is found.
Someone to make me a hand.

My ionic cordova run android --device --prod --verbose

iMac-de-DesarrolloMKTech:CBXUsuarios desarrollomktech$ ionic cordova run android --device --prod --verbose
  ionic:lib Terminal info: { tty: true, ci: false } +0ms
  ionic:lib CLI global options: { _: [ 'cordova', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, device: true, prod: true, project: null, '--': [] } +4ms
  ionic:lib:project Project type from config: Ionic Angular 3 (ionic-angular) +0ms
  ionic:lib Project name: undefined +311ms
  ionic Context: { binPath: '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: '/usr/local/lib/node_modules/ionic', execPath: '/Users/desarrollomktech/Desktop/CBXUsuarios', version: '4.2.1' } +0ms
  ionic:lib:integrations:cordova:config Using config.xml: /Users/desarrollomktech/Desktop/CBXUsuarios/config.xml +0ms
  ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
  ionic:lib:project:ionic-angular:build Looking for ionic:build npm script. +0ms
> ionic-app-scripts build --prod --target cordova --platform android
[08:54:09]  ionic-app-scripts 3.2.0
[08:54:09]  build prod started ...
[08:54:09]  clean started ...
[08:54:09]  clean finished in 39 ms
[08:54:09]  copy started ...
[08:54:09]  deeplinks started ...
[08:54:10]  deeplinks finished in 142 ms
[08:54:10]  ngc started ...
[08:54:24]  ngc finished in 13.98 s
[08:54:24]  preprocess started ...
[08:54:24]  preprocess finished in less than 1 ms
[08:54:24]  webpack started ...
[08:54:24]  copy finished in 14.79 s
[08:54:51]  webpack finished in 27.48 s
[08:54:51]  uglify started ...
[08:54:51]  sass started ...
[08:54:56]  sass finished in 4.50 s
[08:54:56]  cleancss started ...
[08:54:59]  cleancss finished in 3.23 s
[08:55:17]  uglify finished in 26.31 s
[08:55:17]  postprocess started ...
[08:55:18]  postprocess finished in 171 ms
[08:55:18]  lint started ...
[08:55:18]  build prod finished in 68.42 s
[08:55:24]  tslint: src/providers/ubicacion/ubicacion.ts, line: 238
            'data' is declared but its value is never read.

     L237:   loading.present();
     L238:  let data = new URLSearchParams();
     L239:  let point1_lat = latInicial.toString();

            'marker' is declared but its value is never read.

[08:55:24]  tslint: src/pages/solicitar/solicitar.ts, line: 165
     L164:  if(status === 'OK' && results[0]){
     L165:    let marker = new google.maps.Marker({
     L166:      position: results[0].geometry.location,

[08:55:24]  tslint: src/pages/solicitar/solicitar.ts, line: 6
            All imports on this line are unused.

       L5:  declare var google;
       L6:  import { Observable } from 'rxjs/Observable';
       L7:  //pages

[08:55:24]  tslint: src/pages/solicitar/solicitar.ts, line: 8
            All imports on this line are unused.

       L7:  //pages
       L8:  import { HomePage } from '../home/home';
       L9:  //Providers

[08:55:24]  tslint: src/pages/home/home.ts, line: 37
            Property 'alertCtrl' is declared but its value is never read.

      L36:  constructor(public navCtrl: NavController, public zone: NgZone, public geolocation: Geolocation,public loadingCtrl: LoadingController,
      L37:              private modalCtrl:ModalController, private alertCtrl: AlertController, private userProv:UsuarioP
      L38:    this.geocoder = new google.maps.Geocoder;

            'marker' is declared but its value is never read.

     L129:  if(status === 'OK' && results[0]){
     L130:    let marker = new google.maps.Marker({
     L131:      position: results[0].geometry.location,

            Property 'alertCtrl' is declared but its value is never read.

      L31:  Ctrl: NavController, public navParams: NavParams,public fb: FormBuilder, private alertCtrl: AlertController,
      L32:                private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,

            Property 'loadingCtrl' is declared but its value is never read.

      L32:            private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,
[08:55:24]  tslint: src/pages/home/home.ts, line: 130
[08:55:24]  tslint: src/pages/login/login.ts, line: 31
[08:55:24]  tslint: src/pages/login/login.ts, line: 33
      L33:            private loadingCtrl: LoadingController) {
      L34:  console.log(this.usersProv.fotoPerfil)

            Property 'ubiProv' is declared but its value is never read.

      L29:  constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen, public usersProv:UsuarioProvider,
      L30:              private ubiProv: UbicacionProvider ) {
      L31:    //this.usersProv.cargarStorage();

            All imports on this line are unused.

[08:55:24]  tslint: src/app/app.component.ts, line: 30
[08:55:24]  tslint: src/app/app.component.ts, line: 13
      L12:  import { ListPage } from '../pages/list/list';
      L13:  import { LoginPage } from '../pages/login/login';
      L14:  //Providers

[08:55:24]  lint finished in 6.36 s
  ionic:lib:hooks Looking for ionic:build:after npm script. +1m
> cordova run android --device --verbose
No scripts found for hook "before_run".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
  copy  www/assets/fonts/ionicons.woff platforms/android/app/src/main/assets/www/assets/fonts/ionicons.woff (updated file)
  copy  www/assets/fonts/ionicons.woff2 platforms/android/app/src/main/assets/www/assets/fonts/ionicons.woff2 (updated file)
  copy  www/assets/icon/favicon.ico platforms/android/app/src/main/assets/www/assets/icon/favicon.ico (updated file)
  copy  www/assets/imgs/logo.png platforms/android/app/src/main/assets/www/assets/imgs/logo.png (updated file)
  copy  www/build/main.css platforms/android/app/src/main/assets/www/build/main.css (updated file)
  copy  www/build/main.js platforms/android/app/src/main/assets/www/build/main.js (updated file)
  copy  www/build/polyfills.js platforms/android/app/src/main/assets/www/build/polyfills.js (updated file)
  copy  www/build/sw-toolbox.js platforms/android/app/src/main/assets/www/build/sw-toolbox.js (updated file)
  copy  www/build/vendor.js platforms/android/app/src/main/assets/www/build/vendor.js (updated file)
  copy  www/index.html platforms/android/app/src/main/assets/www/index.html (updated file)
  copy  www/manifest.json platforms/android/app/src/main/assets/www/manifest.json (updated file)
  copy  www/service-worker.js platforms/android/app/src/main/assets/www/service-worker.js (updated file)
Wrote out android application name "CBXUsuarios" to /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.5): 5
Wrote out Android package name "com.grupomktech.carbox.users" to /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/java/com/grupomktech/carbox/users/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
Running command: /usr/libexec/java_home
Command finished with error code 0: /usr/libexec/java_home
ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
Running command: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/gradlew cdvBuildDebug -b /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_e6pg1sn01mwj0g6433e73qvhc.run(/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build.gradle:143)
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
:app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
:CordovaLib:compileDebugNdk NO-SOURCE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateSigningDebug
:app:packageDebug
:app:assembleDebug
:app:cdvBuildDebug

BUILD SUCCESSFUL in 6s
47 actionable tasks: 7 executed, 40 up-to-date
Command finished with error code 0: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/gradlew cdvBuildDebug,-b,/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Built the following apk(s):
        /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
No scripts found for hook "before_deploy".
ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
Running command: adb devices
Command finished with error code 0: adb devices
Running adb shell command "cat /proc/cpuinfo" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell cat /proc/cpuinfo
Command finished with error code 0: adb -s,A3P9K17726902412,shell,cat,/proc/cpuinfo
none
Skipping build...
Built the following apk(s):
        /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Using apk: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Package name: com.grupomktech.carbox.users
Installing apk /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 install -r /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Command finished with error code 0: adb -s,A3P9K17726902412,install,-r,/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Running adb shell command "input keyevent 82" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell input keyevent 82
Command finished with error code 0: adb -s,A3P9K17726902412,shell,input,keyevent,82
Starting application "com.grupomktech.carbox.users/.MainActivity" on target A3P9K17726902412...
Running adb shell command "am start -W -a android.intent.action.MAIN -ncom.grupomktech.carbox.users/.MainActivity" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell am start -W -a android.intent.action.MAIN -ncom.grupomktech.carbox.users/.MainActivity
Command finished with error code 0: adb -s,A3P9K17726902412,shell,am,start,-W,-a,android.intent.action.MAIN,-ncom.grupomktech.carbox.users/.MainActivity
LAUNCH SUCCESS
No scripts found for hook "after_run".
iMac-de-DesarrolloMKTech:CBXUsuarios desarrollomktech$

Any expert that can help me please.

Where are you seeing that the error is coming from vendor.js? The build output you pasted just has a bunch of lint warnings in your app’s code about unused variables and imports (which you should remove) but the build is successful.

If you meant that it fails when running on the device, you should post the full console error and stack trace instead :slight_smile:

That is the error that shows me android studio in the console my application runs fine but in android 5 or less does not work, my android-minSdkVersion value = “16” so I think it has nothing to do with that but I’m stuck 2 ago days and nothing

I understand, but what you have posted doesn’t help to know that the problem might be. We can’t help you if you don’t share the actual Javascript error thrown by your app when running on Android.

You can run your app on your Android device connected with an USB cable and running ionic run android --device -l -c. Any error logged in the device’s webview will be also shown in your terminal, so you can copy & paste it here.

This command is also used for emulators, since by hand I do not have a phone with android 5 or lower I do it through the emulator, but my client tries the app on a p9 and even has the same problem it keeps loading and does nothing, I I have a console log but only enters the first one and does nothing else

Sorry but there’s simply no information to help you out, other than you have an error, that seems to be coming from vendor.js (which is where all the external npm dependencies are bundled) and that it happens in your client’s P9 running Android 5.

It could be anything. Impossible to tell without a proper error output and stack trace.

Ok, I’m going to get the phone and the code that you give me and see how it goes.
Just show me the errors I contact you here

This is the error thrown at me by the android studio console

11-28 08:25:07.566 1065-1065/? D/StatusBar.NetworkController: updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "GRUPOMKTECH.COM", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false connection:100
11-28 08:30:31.106 8537-8537/? I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
11-28 08:30:31.216 8537-8537/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:30:31.216 8537-8537/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:30:31.216 8537-8537/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:30:31.216 8537-8537/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:30:33.306 8537-8626/? I/chromium: [INFO:simple_index_file.cc(437)] Simple Cache Index is being restored from disk.
11-28 08:30:33.696 234-234/? D/OEMINFO: Message from client (receive = 65572 byte)) : fun type = 0!
11-28 08:30:33.696 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:30:33.696 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:30:33.706 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:30:33.806 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:30:33.806 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:30:33.806 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:30:33.806 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:30:33.836 8537-8537/? I/chromium: [INFO:CONSOLE(15)] "The key "viewport-fit" is not recognized and ignored.", source: http://192.168.1.25:8102/ (15)
11-28 08:30:37.756 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:30:37.756 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:30:37.756 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:30:37.756 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:03.006 8537-8537/? I/chromium: [INFO:CONSOLE(157)] "deviceready has not fired after 5 seconds.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:31:03.006 8537-8537/? I/chromium: [INFO:CONSOLE(157)] "Channel not fired: onDOMContentLoaded", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:31:03.046 8537-8537/? I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:31:03.516 8537-8537/? I/chromium: [INFO:CONSOLE(157)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:31:03.666 8537-8537/? I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready event fired after 23979 ms", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:31:06.196 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:31:06.196 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:06.196 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:06.206 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:06.216 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:31:06.226 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:06.226 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:06.226 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:06.236 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:31:06.236 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:06.236 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:06.236 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:30.796 8747-8747/? I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
11-28 08:31:30.796 8747-8747/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:31:30.796 8747-8747/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:31:30.796 8747-8747/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:31:30.796 8747-8747/? I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:31:31.446 8747-8793/? I/chromium: [INFO:simple_index_file.cc(437)] Simple Cache Index is being restored from disk.
11-28 08:31:31.606 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:31:31.606 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:31.606 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:31.606 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:31.696 234-234/? D/OEMINFO: Message from client (receive = 65572 byte)) : fun type = 0!
11-28 08:31:31.696 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:31.696 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:31.706 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:31:31.716 8747-8747/? I/chromium: [INFO:CONSOLE(15)] "The key "viewport-fit" is not recognized and ignored.", source: http://192.168.1.25:8102/ (15)
11-28 08:31:33.096 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:31:33.096 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:31:33.096 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:31:33.096 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:32:01.076 8747-8747/? I/chromium: [INFO:CONSOLE(157)] "deviceready has not fired after 5 seconds.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:32:01.086 8747-8747/? I/chromium: [INFO:CONSOLE(157)] "Channel not fired: onDOMContentLoaded", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:32:01.106 8747-8747/? I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:32:01.506 8747-8747/? I/chromium: [INFO:CONSOLE(157)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:32:01.826 8747-8747/? I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready event fired after 24010 ms", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:32:09.296 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:32:09.296 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:32:09.296 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:32:09.296 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:32:09.306 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:32:09.306 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:32:09.306 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:32:09.306 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:32:09.316 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:32:09.316 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:32:09.316 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:32:09.316 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:34:17.796 1065-1065/? D/StatusBar.NetworkController: updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "GRUPOMKTECH.COM", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false connection:100
11-28 08:35:21.346 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
11-28 08:35:21.346 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:35:21.346 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:35:21.346 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:35:21.346 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:url_util.cc(431)] AddStandardScheme is not supported
11-28 08:35:22.406 234-234/? D/OEMINFO: Message from client (receive = 65572 byte)) : fun type = 0!
11-28 08:35:22.406 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:35:22.406 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:35:22.406 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:35:22.506 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:35:22.506 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:35:22.506 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:35:22.506 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:35:22.506 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(15)] "The key "viewport-fit" is not recognized and ignored.", source: http://192.168.1.25:8102/ (15)
11-28 08:35:24.166 234-234/? D/OEMINFO: Message from client (receive = 16192 byte)) : fun type = 0!
11-28 08:35:24.166 234-234/? D/OEMINFO: rmt_oeminfo_process_event!
11-28 08:35:24.166 234-234/? D/OEMINFO: rmt_oeminfo_process_event(), enter. type is 70, function is 0.
11-28 08:35:24.176 234-234/? E/OEMINFO: oeminfo_read fail.
11-28 08:35:50.176 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(157)] "deviceready has not fired after 5 seconds.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:35:50.176 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(157)] "Channel not fired: onDOMContentLoaded", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:35:50.206 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:35:50.586 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(157)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)
11-28 08:35:50.896 8940-8940/com.grupomktech.carbox.users I/chromium: [INFO:CONSOLE(157)] "Ionic Native: deviceready event fired after 24160 ms", source: http://192.168.1.25:8102/__ion-dev-server/ion-dev.js?v=3.2.0 (157)

This is the error that the VSC console shows me

^CiMac-de-DesarrolloMKTech:CBXUsuarios desarrollomktech$ ionic cordova run android --device -l -c
> ionic-app-scripts serve --address 0.0.0.0 --port 8102 --livereload-port 35731 --dev-logger-port 53705 --consolelogs --nobrowser --iscordovaserve --platform android --target cordova
[app-scripts] [08:34:19]  ionic-app-scripts 3.2.0
[app-scripts] [08:34:19]  watch started ...
[app-scripts] [08:34:19]  build dev started ...
[app-scripts] [08:34:19]  clean started ...
[app-scripts] [08:34:19]  clean finished in 87 ms
[app-scripts] [08:34:19]  copy started ...
[app-scripts] [08:34:19]  deeplinks started ...
[app-scripts] [08:34:19]  deeplinks finished in 125 ms
[app-scripts] [08:34:19]  transpile started ...
[app-scripts] [08:34:30]  transpile finished in 10.55 s
[app-scripts] [08:34:30]  preprocess started ...
[app-scripts] [08:34:30]  preprocess finished in 1 ms
[app-scripts] [08:34:30]  webpack started ...
[app-scripts] [08:34:30]  copy finished in 11.41 s
[app-scripts] [08:34:36]  webpack finished in 5.94 s
[app-scripts] [08:34:36]  sass started ...
[app-scripts] [08:34:39]  sass finished in 3.34 s
[app-scripts] [08:34:39]  postprocess started ...
[app-scripts] [08:34:39]  postprocess finished in 87 ms
[app-scripts] [08:34:39]  lint started ...
[app-scripts] [08:34:39]  build dev finished in 20.59 s
[app-scripts] [08:34:39]  watch ready in 20.83 s

[INFO] Development server running!

       Local: http://localhost:8102
       External: http://192.168.1.25:8102

       Use Ctrl+C to quit this process

> cordova run android --device
[cordova]  Android Studio project detected
[cordova]  ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
[cordova]  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
[cordova]  studio
[cordova]  Subproject Path: CordovaLib
[cordova]  Subproject Path: app
[cordova]  publishNonDefault is deprecated and has no effect anymore. All variants are now published.
[cordova]  The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
[cordova]       at build_e6pg1sn01mwj0g6433e73qvhc.run(/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build.gradle:143)
[cordova]  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
[cordova]  :CordovaLib:preBuild UP-TO-DATE
[cordova]  :CordovaLib:preDebugBuild UP-TO-DATE
[cordova]  :CordovaLib:compileDebugAidl UP-TO-DATE
[cordova]  :CordovaLib:compileDebugRenderscript UP-TO-DATE
[cordova]  :CordovaLib:checkDebugManifest UP-TO-DATE
[cordova]  :CordovaLib:generateDebugBuildConfig UP-TO-DATE
[cordova]  :CordovaLib:prepareLintJar UP-TO-DATE
[cordova]  :CordovaLib:generateDebugResValues UP-TO-DATE
[cordova]  :CordovaLib:generateDebugResources UP-TO-DATE
[cordova]  :CordovaLib:packageDebugResources UP-TO-DATE
[cordova]  :CordovaLib:platformAttrExtractor UP-TO-DATE
[cordova]  :CordovaLib:processDebugManifest UP-TO-DATE
[cordova]  :CordovaLib:processDebugResources
[cordova]  :CordovaLib:generateDebugSources
[cordova]  :CordovaLib:javaPreCompileDebug UP-TO-DATE
[cordova]  :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
[cordova]  :CordovaLib:processDebugJavaRes NO-SOURCE
[cordova]  :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[cordova]  :app:preBuild UP-TO-DATE
[cordova]  :app:preDebugBuild UP-TO-DATE
[cordova]  :app:compileDebugAidl UP-TO-DATE
[cordova]  :CordovaLib:packageDebugRenderscript NO-SOURCE
[cordova]  :app:compileDebugRenderscript UP-TO-DATE
[cordova]  :app:checkDebugManifest UP-TO-DATE
[cordova]  :app:generateDebugBuildConfig UP-TO-DATE
[cordova]  :app:prepareLintJar UP-TO-DATE
[cordova]  :app:generateDebugResValues UP-TO-DATE
[cordova]  :app:generateDebugResources UP-TO-DATE
[app-scripts] [08:35:02]  tslint: src/providers/ubicacion/ubicacion.ts, line: 234
[app-scripts]             'data' is declared but its value is never read.
[app-scripts]      L233:   loading.present();
[app-scripts]      L234:  let data = new URLSearchParams();
[app-scripts]      L235:  let point1_lat = latInicial.toString();
[app-scripts]             'marker' is declared but its value is never read.
[app-scripts]      L161:  if(status === 'OK' && results[0]){
[app-scripts]      L162:    let marker = new google.maps.Marker({
[app-scripts]      L163:      position: results[0].geometry.location,
[app-scripts]             All imports on this line are unused.
[app-scripts] [08:35:02]  tslint: src/pages/solicitar/solicitar.ts, line: 162
[app-scripts] [08:35:02]  tslint: src/pages/solicitar/solicitar.ts, line: 6
[app-scripts] [08:35:02]  tslint: src/pages/solicitar/solicitar.ts, line: 8
[app-scripts]        L5:  declare var google;
[app-scripts]        L6:  import { Observable } from 'rxjs/Observable';
[app-scripts]        L7:  //pages
[app-scripts]             All imports on this line are unused.
[app-scripts]        L7:  //pages
[app-scripts]        L8:  import { HomePage } from '../home/home';
[app-scripts]        L9:  //Providers
[app-scripts]             Property 'alertCtrl' is declared but its value is never read.
[app-scripts]       L37:  constructor(public navCtrl: NavController, public zone: NgZone, public geolocation: Geolocation,public loadingCtrl: LoadingController,
[app-scripts]       L38:              private modalCtrl:ModalController, private alertCtrl: AlertController, private userProv:UsuarioP
[app-scripts] [08:35:02]  tslint: src/pages/home/home.ts, line: 38
[app-scripts] [08:35:02]  tslint: src/pages/home/home.ts, line: 135
[app-scripts]       L39:    this.geocoder = new google.maps.Geocoder;
[app-scripts]             'marker' is declared but its value is never read.
[app-scripts]      L134:  if(status === 'OK' && results[0]){
[app-scripts]      L135:    let marker = new google.maps.Marker({
[app-scripts]      L136:      position: results[0].geometry.location,
[app-scripts]             Property 'alertCtrl' is declared but its value is never read.
[app-scripts]       L31:  Ctrl: NavController, public navParams: NavParams,public fb: FormBuilder, private alertCtrl: AlertController,
[app-scripts]       L32:                private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,
[app-scripts]             Property 'loadingCtrl' is declared but its value is never read.
[app-scripts]       L32:            private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,
[app-scripts]       L33:            private loadingCtrl: LoadingController) {
[app-scripts]       L34:  console.log(this.usersProv.fotoPerfil)
[app-scripts]             Property 'ubiProv' is declared but its value is never read.
[app-scripts]       L29:  constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen, public usersProv:UsuarioProvider,
[app-scripts]       L30:              private ubiProv: UbicacionProvider ) {
[app-scripts]       L31:    this.initializeApp();
[app-scripts]             All imports on this line are unused.
[app-scripts]       L12:  import { ListPage } from '../pages/list/list';
[app-scripts]       L13:  import { LoginPage } from '../pages/login/login';
[app-scripts]       L14:  //Providers
[app-scripts] [08:35:02]  tslint: src/pages/login/login.ts, line: 31
[app-scripts] [08:35:02]  tslint: src/pages/login/login.ts, line: 33
[app-scripts] [08:35:02]  tslint: src/app/app.component.ts, line: 30
[app-scripts] [08:35:02]  tslint: src/app/app.component.ts, line: 13
[app-scripts] [08:35:02]  lint finished in 23.39 s
[cordova]  :app:mergeDebugResources
[cordova]  :app:createDebugCompatibleScreenManifests UP-TO-DATE
[cordova]  :app:processDebugManifest
[cordova]  :app:splitsDiscoveryTaskDebug UP-TO-DATE
[cordova]  :app:processDebugResources
[cordova]  :app:generateDebugSources
[cordova]  :app:javaPreCompileDebug UP-TO-DATE
[cordova]  :app:compileDebugJavaWithJavac UP-TO-DATE
[cordova]  :app:compileDebugNdk NO-SOURCE
[cordova]  :app:compileDebugSources UP-TO-DATE
[cordova]  :CordovaLib:mergeDebugShaders UP-TO-DATE
[cordova]  :CordovaLib:compileDebugShaders UP-TO-DATE
[cordova]  :CordovaLib:generateDebugAssets UP-TO-DATE
[cordova]  :CordovaLib:mergeDebugAssets UP-TO-DATE
[cordova]  :app:mergeDebugShaders UP-TO-DATE
[cordova]  :app:compileDebugShaders UP-TO-DATE
[cordova]  :app:generateDebugAssets UP-TO-DATE
[cordova]  :app:mergeDebugAssets
[cordova]  :app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
[cordova]  :app:transformClassesWithStackFramesFixerForDebug
[cordova]  :app:transformClassesWithDesugarForDebug
[cordova]  :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[cordova]  :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[cordova]  :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[cordova]  :CordovaLib:compileDebugNdk NO-SOURCE
[cordova]  :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
[cordova]  :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[cordova]  :CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[cordova]  :app:mergeDebugJniLibFolders UP-TO-DATE
[cordova]  :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[cordova]  :app:processDebugJavaRes NO-SOURCE
[cordova]  :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[cordova]  :app:validateSigningDebug
[cordova]  :app:packageDebug
[cordova]  :app:assembleDebug
[cordova]  :app:cdvBuildDebug
[cordova]
[cordova]  BUILD SUCCESSFUL in 12s
[cordova]  47 actionable tasks: 9 executed, 38 up-to-date
[cordova]  Built the following apk(s):
[cordova]       /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
[cordova]  ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
[cordova]  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
[cordova]  none
[cordova]  Skipping build...
[cordova]  Built the following apk(s):
[cordova]       /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
[cordova]  Using apk: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
[cordova]  Package name: com.grupomktech.carbox.users
[cordova]  LAUNCH SUCCESS
[app-scripts] [08:35:50]  console.log: deviceready has not fired after 5 seconds.
[app-scripts] [08:35:50]  console.log: Channel not fired: onDOMContentLoaded
[app-scripts] [08:35:50]  console.warn: Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an
[app-scripts]             inconsistent state. Try removing plugins from plugins/ and reinstalling them.
[app-scripts] [08:35:50]  console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
[app-scripts]             mode.
[app-scripts] [08:35:50]  console.log: Ionic Native: deviceready event fired after 24160 ms

I thank you if you could help me

I see no errors, other than the linting warnings about unused imports and variables (which I recommend you fix). The app does take a lot of time to fire the deviceready event, 24 seconds is just way too long.

I would follow the advice Ionic Native is giving you:

Ionic Native: deviceready did not fire within 5000ms.
This can happen when plugins are in an inconsistent state.
Try removing plugins from plugins/ and reinstalling them.

Other than this, I have no idea why the app is not launching (even if slowly). If reinstalling the plugins doesn’t work, you’ll have to do your own debugging and dig deeper. Maybe somebody else had a similar problem and can guide you.

Hi,

I see this same error when running in simulator or ios device. This happens when trying to acess in App Purchase 2 register method. I spent a lot of time to handle this issue but no luck.

Here is the error.

2019-03-10 07:37:28.989085-0700 lets-crack[13776:125053] Error On Store Issues{"line":110493,"column":113,"sourceURL":"http://localhost:8080/build/vendor.js"}

Here is the log:

Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: calling this.purchaseProvider.purchase()
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: purchase-service-provider:purchase:entering:
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: purchase-service-provider:purchase:calling setup:
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: purchase-service-provider:entering setup()
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: purchase-service-provider:setup:productId:com.sahaapps.letscrack.10pc9inr
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: Error On Store Issues{"line":110494,"column":113,"sourceURL":"http://localhost:8080/build/vendor.js"}
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: purchase-service-provider:setup:exiting
Mar 10 11:55:11 Ganeshs-iPhone lets-crack[3055] <Notice>: 	   

Here is my ionic info

Ionic:

   ionic (Ionic CLI)  : 4.11.0 (C:\Users\Admin\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic 5.2.9, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 20 other plugins)

System:

   NodeJS : v10.13.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

Here is my provider code:

	import { Injectable } from '@angular/core';
	import { Platform } from "ionic-angular";
	import { IAPProduct, InAppPurchase2 } from "@ionic-native/in-app-purchase-2/ngx";
	import { AlertController } from "ionic-angular";
	const APPLE_PRODUCT_ID = '<apple.product.id>';

	@Injectable()
	export class PurchaseServiceProvider {

	  public item;

	  public productInfo: any = {
		name: 'Ad free',
		googleProductId: 'adfreenew'
	  };

	  constructor(
		private platform: Platform,
		private iap2: InAppPurchase2,
		private alertCtrl: AlertController
	  ) {

	  }

	  setup() {
		console.log('purchase-service-provider:entering setup()');
		if (!this.platform.is('cordova')) { return; }
		let productId;
		try {
		  if (this.platform.is('ios')) {
			productId = APPLE_PRODUCT_ID;
		  } else if (this.platform.is('android')) {
			productId = this.productInfo.googleProductId;
		  }
		  console.log('purchase-service-provider:setup:productId:' + productId);

		  this.iap2.register({
			id: productId,
			alias: productId,
			type: this.iap2.CONSUMABLE
		  });

		  console.log('purchase-service-provider:setup:after  calling register:');
		  this.registerHandlers(productId);
		  console.log('purchase-service-provider:setup:after calling registerHandlers:');

		  this.iap2.ready(function () {
			console.log('purchase-service-provider:setup:' + JSON.stringify(this.store.get(productId)));
			console.log('purchase-service-provider:setup:Store is Ready: ' + JSON.stringify(status));
			console.log('purchase-service-provider:setup:Products: ' + JSON.stringify(this.store.products));
		  });
		  console.log('purchase-service-provider:setup:after ready:');

		  // Errors On The Specific Product
		  this.iap2.when(productId).error((error) => {
			alert('An Error Occured' + JSON.stringify(error));
		  });
		  // Refresh Always
		  console.log('Refresh Store');
		  this.iap2.refresh();
		} catch (err) {
		  console.log('Error On Store Issues' + JSON.stringify(err));
		}
		console.log('purchase-service-provider:setup:exiting');
	  }

	  registerHandlers(productId) {
		console.log('purchase-service-provider:registerHandlers:entering');
		// Handlers
		this.iap2.when(productId).approved((product: IAPProduct) => {
		  // Purchase was approved
		  product.finish();
		});
		console.log('purchase-service-provider:registerHandlers:when approved');
		this.iap2.when(productId).owned((product: IAPProduct) => {
		  product.finish();
		});
		console.log('purchase-service-provider:registerHandlers:when owned');
		this.iap2.when(productId).verified((product: IAPProduct) => {
		  product.verify();
		  let alert = this.alertCtrl.create({
			title: 'Purchase succeeded',
			message: 'Thanks you so much for your support, you rock',
		  });
		  alert.present();
		});
		console.log('purchase-service-provider:registerHandlers:when verified');

		this.iap2.when(productId).updated((product: IAPProduct) => {
		  console.log('Loaded' + JSON.stringify(product));

		});
		console.log('purchase-service-provider:registerHandlers:when updated');

		this.iap2.when(productId).cancelled((product) => {
		  let alert = this.alertCtrl.create({
			title: 'Purchase failed',
			message: 'Thanks for trying the adfree purchase but you where unlucky and it failed',
			buttons: [
			  {
				text: 'Try Again',
				role: 'retry',
				handler: () => {
				  this.purchase();
				}
			  },
			  {
				text: 'Ok',
			  }
			]
		  });
		  alert.present();
		});
		console.log('purchase-service-provider:registerHandlers:when cancelled');

		// Overall Store Error
		this.iap2.error((err) => {
		  //alert('Store Error ' + JSON.stringify(err));
		  console.log('purchase-service-provider:registerHandlers:error:' + JSON.stringify(err));

		});
		console.log('purchase-service-provider:registerHandlers:when error');
		console.log('purchase-service-provider:registerHandlers:exiting');

	  }

	  async purchase() {
		console.log('purchase-service-provider:purchase:entering:');

		if (!this.platform.is('cordova')) { return }

		console.log('purchase-service-provider:purchase:calling setup:');

		this.setup();

		//this.item = this.iap2.get(APPLE_PRODUCT_ID);

		let productId;

		if (this.platform.is('ios')) {
		  productId = APPLE_PRODUCT_ID;
		} else if (this.platform.is('android')) {
		  productId = this.productInfo.googleProductId;
		}

		console.log('purchase-service-provider:purchase:productId:' + productId);

		console.log('purchase-service-provider:purchase:Products: ' + JSON.stringify(this.iap2.products));
		console.log('purchase-service-provider:purchase:Ordering From Store: ' + productId);
		try {
		  let product = this.iap2.get(productId);
		  console.log('purchase-service-provider:purchase:Product Info: ' + JSON.stringify(product));
		  let order = await this.iap2.order(productId);
		} catch (err) {
		  console.log('purchase-service-provider:purchase:Error Ordering ' + JSON.stringify(err));
		}
	  }

	  async restore() {
		if (!this.platform.is('cordova')) {
		  return
		}

		let productId;

		if (this.platform.is('ios')) {
		  productId = APPLE_PRODUCT_ID;
		} else if (this.platform.is('android')) {
		  productId = this.productInfo.googleProductId;
		}

		console.log('Products: ' + JSON.stringify(this.iap2.products));
		console.log('Refreshing Store: ' + productId);
		try {
		  let product = this.iap2.get(productId);
		  console.log('Product Info: ' + JSON.stringify(product));
		  this.iap2.refresh();
		} catch (err) {
		  console.log('Error Ordering ' + JSON.stringify(err));
		}
	  }
	}

I’m also running into a similar issue when trying to run the In App Purchases 2 plugin.

2019-06-09 20:46:30.522294-0400 IAP2 Test[5807:823891] ConfigurePurchasing() method error
2019-06-09 20:46:30.526687-0400 IAP2 Test[5807:823891] {"line":76863,"column":113,"sourceURL":"ionic://localhost/build/vendor.js"}
2019-06-09 20:46:30.528118-0400 IAP2 Test[5807:823891] Error Ordering {"line":76780,"column":133,"sourceURL":"ionic://localhost/build/vendor.js"}

Here’s my info:

Ionic:

   Ionic CLI          : 5.0.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.5
   @ionic/app-scripts : 3.2.2

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 4.5.5
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 4 other plugins)

Utility:

   cordova-res : 0.3.0
   native-run  : 0.1.2

System:

   ios-deploy : 1.9.4
   NodeJS     : v10.15.3 (/usr/local/bin/node)
   npm        : 6.4.1
   OS         : macOS Mojave
   Xcode      : Xcode 10.2.1 Build version 10E1001