Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Apache Cordova Splash Screen Change

DZone's Guide to

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
Free Resource

Launching an app doesn’t need to be daunting. Whether you’re just getting started or need a refresher on mobile app testing best practices, this guide is your resource! Brought to you in partnership with Perfecto

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.


Keep up with the latest DevTest Jargon with the latest Mobile DevTest Dictionary. Brought to you in partnership with Perfecto.

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 DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}