$cordovaSplashScreen not hiding on IOS

I have a project using cordova-plugin-splashscreen v 3.1.0 … but now I can’t hide the splashscreen anymore on IOS … so I use

$cordovaSplashscreen.hide();

to hide …

So I opened an other project wich uses v3.0.0 and there

$cordovaSplashscreen.hide();

works

Has anybody expierenced this?

my config.xml

  <preference name="SplashScreen" value="screen"/>
  <preference name="ShowSplashScreenSpinner" value="true"/>
  <preference name="AutoHideSplashScreen" value="false"/>
  <preference name="SplashScreenDelay" value="50000"/>
  <preference name="FadeSplashScreen" value="false"/>

I’ve experienced the same problem and had to downgrade to v3.0.0 like yourself.
ionic plugin add cordova-plugin-@3.0.0

ionic plugin add cordova-plugin-splashscreen@3.0.0

@yatest9well … I made it working with the new upgrade

updated the config.xml

  <preference name="SplashScreen" value="screen"/>
  <preference name="ShowSplashScreenSpinner" value="true"/>
  <preference name="AutoHideSplashScreen" value="false"/>
  <preference name="FadeSplashScreen" value="true"/>
  <preference name="FadeSplashScreenDuration" value="1000"/> 

And an exception for Android

So the screendelay is only for android

@coreelements I’m facing the same issue… What do you mean with “an exception with android”? Are you using 3.0.0 or 3.1.0?

actually … now using the development version

cordova-plugin-splashscreen 3.1.1-dev "Splashscreen"

Yeah … “AutoHideSplashScreen” doesnt work with android, only ios. So I added the delay in the Android section. When I add the delay also in ios, the plugin always executes the delay and ignores the “AutoHideSplashScreen”

so a snippet from my config.xml

  <preference name="SplashScreen" value="screen"/>
  <preference name="ShowSplashScreenSpinner" value="true"/>
  <preference name="AutoHideSplashScreen" value="false"/>
  <preference name="FadeSplashScreen" value="true"/>
  <preference name="FadeSplashScreenDuration" value="1000"/>
  <preference name="android-targetSdkVersion" value="20"/>
  
  <preference name="SplashScreenDelay" value="3000"/>
    <feature name="SplashScreen">
    <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen"/>
    <param name="onload" value="true"/>
  </feature>
  
    <platform name="android">
        <preference name="SplashScreenDelay" value="500000"/>
    </platform>

So in android it will do the splashscreendelay :slight_smile:

3 Likes

This fixed it! (using 3.1.0)

<platform name="android">
    <preference name="SplashScreenDelay" value="500000"/>
</platform>

Thanks!

1 Like