Switching between two Ionic apps breaks one (iOS)


#1

Hi, everybody.
Today I found some interesting issue with our two apps:

Device: iPhone 7 v.12.1

StR:

  • Open your Ionic app
  • Press home
  • Open another Ionic App

AR:

  • Unable to launch the app error
    exception nativeEvalAndFetch : ReferenceError: Can't find variable: cordova

ER:

  • able to launch as many apps as I want

Additional

Ionic:

ionic (Ionic CLI) : 4.3.1 (/Users/user/.nvm/versions/node/v8.10.0/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11

Cordova:

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

System:

Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk)
ios-deploy : 2.0.0
ios-sim : 7.0.0
NodeJS : v8.10.0 (/Users/user/.nvm/versions/node/v8.10.0/bin/node)
npm : 5.6.0
OS : macOS
Xcode : Xcode 10.1 Build version 10B61

This one is somehow related, but provided workaround seems not working for my case