[Solved] Ionic V1 + cordova iOS 6.1.1 => Cannot launch on iOS 13 & iOS 14

I’m having issue after upgrade cordova iOS to 6.1.1 for iOS 14.
The reason why I upgrade to cordova iOS 6.1.1 is because the ionic v1 app cannot work on iOS 14, it stuck after the splash screen which same as below issue.
Refer to some of the recommendation online, I decide upgrade to cordova ios 6.1.1 but it having the same issue.

Does cordova-plugin-ionic-webview plugin compatible with ionic v1?

Issue

  • iOS 13 & iOS14 cannot launch properly, it stuck after Splash Screen close.
  • iOS 11 & iOS 12 just work as normal.
  • I can see the landing page after splash screen but all the script doesn’t work, there the page can only load plain html not angularjs template with conditional statement.
  • I can log message from app.js but cannot log any message from the landing page, even from the first line of controller and before enter block. Suspect the controller doesn’t even load at all.
  • I can log message from app.js from .run() & $ionicPlatform.ready(), believe those working just fine.

Xcode output

2020-09-20 14:53:34.862815+0800 app[53030:547374] Apache Cordova native platform version 6.1.1 is starting.
2020-09-20 14:53:34.863130+0800 app[53030:547374] Multi-tasking -> Device: YES, App: YES
2020-09-20 14:53:34.942898+0800 app[53030:547374] CDVWKWebViewEngine: trying to inject XHR polyfill
2020-09-20 14:53:34.946901+0800 app[53030:547374] The preference key "KeyboardResize" is not defined and will default to "TRUE"
2020-09-20 14:53:34.947196+0800 app[53030:547374] The preference key "AutoInjectCordova" is not defined and will default to "FALSE"
2020-09-20 14:53:34.947337+0800 app[53030:547374] The preference key "AudioCanMix" is not defined and will default to "FALSE"
2020-09-20 14:53:35.025983+0800 app[53030:547374] iOS 12.2+ detected
2020-09-20 14:53:35.029652+0800 app[53030:547374] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE"
2020-09-20 14:53:35.380089+0800 app[53030:547374] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
2020-09-20 14:53:35.380340+0800 app[53030:547374] The preference key "AllowLinkPreview" is not defined and will default to "FALSE"
2020-09-20 14:53:35.381041+0800 app[53030:547374] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
2020-09-20 14:53:35.381421+0800 app[53030:547374] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-09-20 14:53:35.381579+0800 app[53030:547374] Using Ionic WKWebView
2020-09-20 14:53:35.382382+0800 app[53030:547374] [CDVTimer][console] 0.086069ms
2020-09-20 14:53:35.382985+0800 app[53030:547374] [CDVTimer][handleopenurl] 0.331998ms
2020-09-20 14:53:35.387454+0800 app[53030:547374] Unlimited access to network resources
2020-09-20 14:53:35.387744+0800 app[53030:547374] [CDVTimer][intentandnavigationfilter] 4.454017ms
2020-09-20 14:53:35.388039+0800 app[53030:547374] [CDVTimer][gesturehandler] 0.108957ms
2020-09-20 14:53:35.445945+0800 app[53030:547374] [CDVTimer][file] 57.747960ms
2020-09-20 14:53:35.446420+0800 app[53030:547374] [CDVTimer][inappbrowser] 0.309944ms
2020-09-20 14:53:35.450018+0800 app[53030:547374] [CDVTimer][statusbar] 3.412008ms
2020-09-20 14:53:35.451136+0800 app[53030:547374] [CDVTimer][socialsharing] 0.921011ms
2020-09-20 14:53:35.451828+0800 app[53030:547374] [CDVTimer][diagnostic] 0.452995ms
2020-09-20 14:53:35.455389+0800 app[53030:547374] [CDVTimer][diagnostic_location] 3.412962ms
2020-09-20 14:53:35.455668+0800 app[53030:547374] [CDVTimer][diagnostic_bluetooth] 0.082016ms
2020-09-20 14:53:35.455882+0800 app[53030:547374] [CDVTimer][diagnostic_wifi] 0.082016ms
2020-09-20 14:53:35.456120+0800 app[53030:547374] [CDVTimer][diagnostic_camera] 0.109076ms
2020-09-20 14:53:35.456682+0800 app[53030:547374] [CDVTimer][diagnostic_notifications] 0.438094ms
2020-09-20 14:53:35.457163+0800 app[53030:547374] [CDVTimer][diagnostic_microphone] 0.331044ms
2020-09-20 14:53:35.511730+0800 app[53030:547374] [CDVTimer][diagnostic_contacts] 54.377913ms
2020-09-20 14:53:35.512087+0800 app[53030:547374] [CDVTimer][diagnostic_calendar] 0.138998ms
2020-09-20 14:53:35.512401+0800 app[53030:547374] [CDVTimer][diagnostic_reminders] 0.126004ms
2020-09-20 14:53:35.520518+0800 app[53030:547374] [CDVTimer][diagnostic_motion] 7.962108ms
2020-09-20 14:53:35.524078+0800 app[53030:547374] [CDVTimer][cdvwkwebviewfilexhr] 3.373027ms
2020-09-20 14:53:35.524721+0800 app[53030:547374] The preference key "KeyboardResize" is not defined and will default to "TRUE"
2020-09-20 14:53:35.524883+0800 app[53030:547374] CDVIonicKeyboard: resize mode 1
2020-09-20 14:53:35.525000+0800 app[53030:547374] The preference key "HideKeyboardFormAccessoryBar" is not defined and will default to "TRUE"
2020-09-20 14:53:35.525616+0800 app[53030:547374] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
2020-09-20 14:53:35.526125+0800 app[53030:547374] [CDVTimer][cdvionickeyboard] 1.863956ms
2020-09-20 14:53:35.526329+0800 app[53030:547374] [CDVTimer][TotalPluginStartup] 144.106984ms
2020-09-20 14:53:35.731944+0800 app[53030:547374] WF: === Starting WebFilter logging for process app
2020-09-20 14:53:35.732372+0800 app[53030:547374] WF: _userSettingsForUser : (null)
2020-09-20 14:53:35.732649+0800 app[53030:547374] WF: _WebFilterIsActive returning: NO
2020-09-20 14:53:36.556823+0800 app[53030:547374] IAB.close() called but it was already closed.
2020-09-20 14:53:37.615554+0800 app[53030:547374] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"
2020-09-20 14:53:37.644414+0800 app[53030:547374] ### ready ###
2020-09-20 14:53:37.645705+0800 app[53030:547374] ## finish ## test

Enviroment
Ionic:

Ionic CLI : 6.11.8 (/…/.nvm/versions/node/v12.16.1/lib/node_modules/@ionic/cli)
Ionic Framework : ionic1 1.3.4
@ionic/v1-toolkit : 1.0.22

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : ios 6.1.1
Cordova Plugins :

@globules-io/cordova-plugin-ios-xhr 1.0.8 "Cordova WKWebView File XHR Plugin"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-clipboard 1.3.0 "Clipboard"
cordova-custom-config 5.1.0 "cordova-custom-config"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-device-name 1.3.5 "Device-Name"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-image-picker 1.1.1 "ImagePicker"
cordova-plugin-inappbrowser 4.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-is-debug 1.0.0 "IsDebug"
cordova-plugin-mediapicker-dmcsdk 2.4.7 "MediaPicker"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-qrscanner 3.0.1 "QRScanner"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.8 "SocialSharing"
cordova-plugin-x-toast 2.7.2 "Toast"
cordova.plugins.diagnostic 5.0.2 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"

Utility:

cordova-res : 0.15.1
native-run : 1.1.0

System:

ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v12.16.1 (/…/.nvm/versions/node/v12.16.1/bin/node)
npm : 6.14.8
OS : macOS Catalina
Xcode : Xcode 12.0 Build version 12A7209

Solved by refer to this post. https://github.com/apache/cordova-ios/issues/680

@dodomui - This is encouraging that you got Ionic v1 working on Cordova iOS 6.1.1 - I am about to go through this myself and was/am dreading my v1 app no longer working on the next platform base. Any other issues you can share or help be aware of. Not as pressing of an issue, but I am going to have to upgrade the cordova-android platform here soon too. Any insights are appreciated.