You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "shrijeetDeshmukh (via GitHub)" <gi...@apache.org> on 2026/03/09 14:32:02 UTC
[I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
shrijeetDeshmukh opened a new issue, #1631:
URL: https://github.com/apache/cordova-ios/issues/1631
# 🐛Ionic Cordova iOS 8.0 Stuck Splash Screen / Blank Screen
The Ionic app gets stuck on the splash screen on iOS devices using Cordova iOS 8.0.0. Developer tools show a blank page: <html><head></head><body></body></html>.
Steps to reproduce: Open the Ionic project. Run the app on iOS device or simulator using `ionic cordova run ios --device`. Observe that the splash screen does not disappear and the main page never loads.
Expected behavior: The app should load the main page after the splash screen.
Actual behavior: Splash screen remains indefinitely. Developer tools show blank HTML (<html><head></head><body></body></html>). Console / Xcode logs contain warnings about undefined preferences and WKWebView initialization.
Logs / Errors:
Apache Cordova iOS platform version 8.0.0 is starting.
CDVWKWebViewEngine: trying to inject XHR polyfill
The preference key "KeyboardResize" is not defined and will default to "TRUE"
The preference key "AutoInjectCordova" is not defined and will default to "FALSE"
The preference key "AudioCanMix" is not defined and will default to "FALSE"
The preference key "WKSuspendInBackground" is not defined and will default to "TRUE"
The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE"
The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
The preference key "InspectableWebview" is not defined and will default to "TRUE"
The preference key "AllowLinkPreview" is not defined and will default to "FALSE"
The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
CDVWKWebViewEngine will reload WKWebView if required on resume
Using Ionic WKWebView
CDVIonicKeyboard: resize mode 1
CDVWKWebViewEngine shouldReloadWebView::
CDVWKWebViewEngine shouldReloadWebView title:
CDVWKWebViewEngine shouldReloadWebView location: ionic://localhost
CDVWKWebViewEngine shouldReloadWebView reload: 0
Failed to resolve host network app id to config: bundleID: com.apple.WebKit.Networking instance ID: Optional([_EXExtensionInstanceIdentifier: 07CEEBA6-785C-4F2D-A377-847B8F5328FC])
Ionic Project Info: Ionic CLI: 7.2.1, Ionic Framework: @ionic/angular 8.8.1, @angular-devkit/build-angular: 20.3.19, @angular-devkit/schematics: 20.3.19, @angular/cli: 20.3.19, @ionic/angular-toolkit: 12.3.0. Cordova CLI: 13.0.0, Cordova Platforms: ios 8.0.0, Cordova Plugins: cordova-plugin-device 2.0.2, cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, cordova-plugin-splashscreen 6.0.2, cordova-plugin-statusbar 2.4.2, cordova-plugin-wkwebview-file-xhr 3.1.1. System: NodeJS v20.19.6, npm 10.8.2, OS macOS Unknown, Xcode 16.4 Build version 16F6.
Plugins installed: cordova-plugin-device 2.0.2 "Device", cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard", cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview", cordova-plugin-splashscreen 6.0.2 "Splashscreen", cordova-plugin-statusbar 2.4.2 "StatusBar", cordova-plugin-wkwebview-file-xhr 3.1.1 "Cordova WKWebView File XHR Plugin".
Screenshots / HTML output: Developer tools show <html><head></head><body></body></html> (the page is blank).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "almanzanaresh (via GitHub)" <gi...@apache.org>.
almanzanaresh commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4033130152
I'm having the same problem. In the web inspector, the page loaded on the app is about:blank, so CMD+R has no effect.
I managed to get it working by removing the cordova-plugin-ionic-webview plugin, but that's caused more problems with other plugins. Any ideas on how to solve this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "Slavrix (via GitHub)" <gi...@apache.org>.
Slavrix commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4036046129
I had this issue also.
What I found was that the root cause looked to be the `decidePolicyForNavigationAction:` was cancelling the `ionic://localhost` navigation because `defaultResourcePolicyForURL:` only allowed `file:// URL`s. The scheme handler never fired because the navigation was rejected before it could reach the handler.
The config.xml has `<allow-navigation href=\"*\" />` which should allow all navigations but doesn't seem to work due to the method signature mismatch between cordova-ios 8 and the Ionic WebView plugin maybe?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub closed issue #1631: Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0
URL: https://github.com/apache/cordova-ios/issues/1631
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "pw-repo (via GitHub)" <gi...@apache.org>.
pw-repo commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-5167259565
@dpogue you are right, Ionic WebView plugin is not already maintained. All the fixes community makes in the own forks. You mentioned "Now that Cordova iOS has built-in support for schemes, I would recommend trying to move to the built-in WebView implementation rather than a 3rd party plugin."
Could you please explain in more details, what is the build-in WebView implementation and how to move to it?
Thanks in advance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4024850711
blank screen issues is _almost_ always a plugin misbehaving preventing a full startup of the cordova application.
> Screenshots / HTML output: Developer tools show (the page is blank).
It's worth noting here that on iOS, the Safari web inspector does not capture JS log output until **after** the developer tools is opened. So in otherwords, the startup logging information is hidden. But you can refresh the webview with the inspector by using cmd + R on the inspector window. This should be sufficient to see what is happening in JS-land during startup, and likely will point you into the right direction.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4047285882
Hi this is not fixed in the latest release 8.0.1 but on master. Please try the master:
1. Checkout the master: `git clone https://github.com/apache/cordova-ios/`
2. NPM Install the platform: `cd cordova-ios && npm install`
3. Add the platform in your Cordova project: `cordova platform add ../cordova-ios` (if the checked out platform is in the same parent folder)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-5170781098
> Could you please explain in more details, what is the build-in WebView implementation and how to move to it?
The steps to switch to the built-in WebView are:
1. Remove the Ionic WebView plugin (or whichever 3rd party webview plugin you are using)
2. Remove any `preference name="CordovaWebViewEngine"` options in config.xml
3. Test your app
4. Potentially set `<preference name="Scheme" value="ionic" />` (or another value) in config.xml to keep existing web data accessible
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "johndster-dot (via GitHub)" <gi...@apache.org>.
johndster-dot commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4046864712
Sorry to chime in on a closed issue. I am a bit at loss as this seems to be the only reference for my current problem on a legacy ionic app, so big thanks to reporters for bringing this up. We updated to cordova-ios 8.0.1 but we are still stuck at the splash like described above.
We tried adding:
<allow-navigation href="ionic://localhost" />
<allow-navigation href="ionic://localhost/*" />
Do we need to change further config or am I missing something glaringly obvious?
In Safari DevTools the webview seems to be stuck at about:blank.
No errors, similar debug output on simulator console:
Apache Cordova iOS platform version 8.0.1 is starting.
CDVWKWebViewEngine: trying to inject XHR polyfill
The preference key "KeyboardResize" is not defined and will default to "TRUE"
The preference key "AutoInjectCordova" is not defined and will default to "FALSE"
The preference key "AudioCanMix" is not defined and will default to "FALSE"
The preference key "WKSuspendInBackground" is not defined and will default to "TRUE"
The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE"
The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
The preference key "InspectableWebview" is not defined and will default to "TRUE"
The preference key "AllowLinkPreview" is not defined and will default to "FALSE"
The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
CDVWKWebViewEngine will reload WKWebView if required on resume
Using Ionic WKWebView
[CDVTimer][console] 0.028968ms
[CDVTimer][handleopenurl] 0.011086ms
Unlimited access to network resources
[CDVTimer][intentandnavigationfilter] 1.758933ms
[CDVTimer][gesturehandler] 0.027895ms
[CDVTimer][statusbarinternal] 0.010014ms
[CDVTimer][statusbar] 1.228929ms
The preference key "KeyboardResize" is not defined and will default to "TRUE"
CDVIonicKeyboard: resize mode 1
The preference key "HideKeyboardFormAccessoryBar" is not defined and will default to "TRUE"
The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
[CDVTimer][cdvionickeyboard] 0.460982ms
[CDVTimer][file] 0.872016ms
[CDVTimer][TotalPluginStartup] 4.611015ms
Failed to resolve host network app id to config: bundleID: com.apple.WebKit.Networking instance ID: Optional([_EXExtensionInstanceIdentifier: REDACTED])
CDVWKWebViewEngine shouldReloadWebView::
CDVWKWebViewEngine shouldReloadWebView title:
CDVWKWebViewEngine shouldReloadWebView location: ionic://localhost
CDVWKWebViewEngine shouldReloadWebView reload: 0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Ionic Apps stuck on blank screen after upgrading to cordova-ios 8.0.0 [cordova-ios]
Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1631:
URL: https://github.com/apache/cordova-ios/issues/1631#issuecomment-4036140594
@Slavrix Thanks for digging, I think you've got the right idea. We changed a selector to include passing an additional information dictionary, and updated the code in Cordova's WebView implementation to call the new one while safely falling back to the old one.
However, the Ionic WebView plugin only calls the old selector, and because of our refactoring that selector no longer exists in CDVIntentAndNavigationFilter.
This should probably be reported to Ionic, although I'm not sure if the Ionic WebView plugin is still in active development. Now that Cordova iOS has built-in support for schemes, I would recommend trying to move to the built-in WebView implementation rather than a 3rd party plugin.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org