With iOS 16.4 Apple added a debug flag on the webview to know if we can enable debugging in safari technology preview or not. This evaluates to false by default, so we can’t debug an iPhone.
This seems to be fixed cordova-ios on the 6.3.0 version.
But if we use the ionic-webview, this still does not be updated and we still can’t debug the iPhone.
I am assuming you are referring to the cordova-plugin-ionic-webview plugin when you say ionic-webview? It hasn’t been updated for three years. For long term support, you are going to want to switch to Capacitor.
That’s what I thought… Actually, it’s an old project that I didn’t want to spend a lot of time on, I just want to quickly fix some bugs, and was hoping I can debug without migrating the whole thing…
cordova-plugin-ionic-webview doesn’t do anything with the splash screen, so without it, it should work the same way.
How are you hiding the splash screen?
Do you call navigator.splashscreen.hide(); anywhere in the code? or use <preference name="AutoHideSplashScreen" value="true" /> in your config.xml?
And i’m using in app.component.ts : this.platform.ready().then(() => { // some verifications... this.splashScreen.hide(); });
So, when i set the autoHide to true, i just get a white page with nothing and no errors, it feels like platforms is never ready, while when i have the ionic-webview, it loads normally.
And this is the case only for ios, it working fine with android.
Ah, cordova-ios still uses file:// by default and that doesn’t play well with most frameworks, you’ll have to configure a scheme so it works the same way ionic webview plugin works.
In example add this so it uses the same scheme ionic webview uses <preference name="scheme" value="ionic" /> (inside the ios platform block)