Splashscreen on iOS not disappearing

I built an app which behaves correct on Android but on iOS after displaying the splash screen nothing happens. Splash screen stays forever. In the Browser the app runs as expected an no error is shown in dev mode.

I also tried to remove everything from config.xml - so only this is left regarding plugins and splashscreen:

plugin name="cordova-plugin-device" /
plugin name="cordova-plugin-globalization" /
plugin name="cordova-plugin-network-information" /
plugin name="cordova-plugin-statusbar" /
plugin name="cordova-plugin-inappbrowser"/
preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png" /
preference name="AndroidWindowSplashScreenBackground" value="#000000" /
preference name="SplashScreenDelay" value="0"/
preference name="FadeSplashScreen" value="true"/
preference name="FadeSplashScreenDuration" value="0"/

I thought acc. to documentation if delay=0 and fade duration=0 no splash will show up?

Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)

Here are Cordova’s docs on Splash Screens.

In particular, check out SplashScreenDelay. I think you need a value for this - did you try that?

Thx for fixing the code part :slight_smile:

Regarding “SplashScreenDelay”: Yes I tried several numbers 1000-3000
When I set the value to 3000 it hides correctly on Android after 3 sec but on iOS present forever.

I found now the issue. As my project is an old one (2017, Phonegap) I had two lines in config.xml:

<preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
<preference name="CordovaDefaultWebViewEngine" value="CDVUIWebViewEngine" />

These caused the issue although I had the new configuration for webkit in the config.xml:

<platform name="ios">
        <preference name="WKWebViewOnly" value="true" />
        <feature name="CDVWKWebViewEngine">
            <param name="ios-package" value="CDVWKWebViewEngine" />
        </feature>
        <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
</platform>

Good find!

We will add a check to VoltBuilder for these so it doesn’t affect anyone else.