Apache Cordova SplashScreen Change

Apache Cordova SplashScreen Change

This post is more than 2 years old.

A few days ago I began to notice something odd with my Apache Cordova tests. When the application would launch, the splash screen would fade away as opposed to just disappearing. I thought this seemed familiar so I double checked the Apache Cordova blog and re-read the last plugins release post. I had read it when it was published, but not terribly closely. In it, it mentions that the SplashScreen plugin was updated to 3.1.0. In the notes, you can see "Implementing FadeSplashScreen feature for Android" and something similar for iOS.

If you head over to the SplashScreen plugin doc though, this update isn't mentioned in the main Preferences section. Rather, you have to scroll down to "Android and iOS Quirks" to see that both a FadeSplashScreen and FadeSplashScreenDuration preference were added. (I've logged a bug about documenting this up in the top preferences section.)

As the docs say - the default is true, so if for some reason you don't like this new behavior, you'll need to add this to your config.xml:

<preference name="FadeSplashScreen" value="false" />

Want to see what this new feature looks like in action? Check out the video I created.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate for HERE Technologies. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Zarko Hristovski posted on 2/2/2016 at 9:53 AM

Just a note for developers that will or have already jumped to the 3.1.0 plugin version - Beware if your app uses AutoHideSplashScreen set to false i.e. you have a logic to hide the splash screen manually.
3.1.0 basically does not take that config parameter into account on iOS.

The issue was already fixed on master: https://github.com/apache/c...

Comment 2 (In reply to #1) by Raymond Camden posted on 2/2/2016 at 1:58 PM

Thanks for the update, Zarko!

Comment 3 by Farzad YZ posted on 6/28/2016 at 1:14 PM

This is awkward. They wrote the fade doc under ios Quirks part and I thought that means it is only for ios. :))))) Thanks solve my day