Over a million developers have joined DZone.

Apache Cordova Splash Screen Change

The new fading splash screen functionality might not be what you want. Here's how to get around it.

· Mobile Zone

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.


Topics:
cordova

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}