Question

I have a phonegap build app that I want to hide the splashscreen all together in. I don't want the default one to show, and I don't have one to add -- I just want no splashscreen. Ideally, I should be able to do this in the config.xml, but I am open to other solutions -- does anyone have any ideas?

Was it helpful?

Solution

Delete the default splash screen image in your project directory. Cordova refers to this image and loads it first when the application starts.If no image is present it simply refers to your index file.This worked for me for my Cordova 3.1 project.

The alternative to this is to remove the splashscreen reference manually

OTHER TIPS

You could try like this

document.addEventListener("deviceready", function(e) 
{
window.setTimeout(function() {
navigator.splashscreen.hide();
},5000);
}, "false");

I hope it will work !!!

I believe if you go into the root config.xml file you can remove the cordova-plugin-splashscreen plugin and then if you clean out the plugins and platforms folders and re-run it will be gone.

<!--<plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />-->
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top