Apache Cordova Splash Screen Change
The new fading splash screen functionality might not be what you want. Here's how to get around it.
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.