Splash Screen Mobile

3

I'm trying to define Splash Screen in my developed apk with Cordova but I'm not getting it, I'm following the documentation available on the official website but it does not work, my doubts are as follows: Is the config.xml file that I need to change the first one that is inside the project folder?

In the documentation they pass this code link ' / p>

    
asked by anonymous 21.10.2015 / 21:40

1 answer

2

Well, I do not know if you have already installed the SplashScreen puglin in the Cordova documentation, if you have already installed puglin, the next step would be to add the preference tags to the "config.xml" document. :

<preference name="SplashScreen" value="screen"/>

<preference name="SplashScreenDelay" value="1000"/> //Aqui coloque o tempo do delay.

Please note that preferences should be within the Widget tag.

Still within the Resources folder, it will contain two drawable-port folders for portrait orientation and the drawable-land folder for landscape orientation .

Just copy your image file to each of these folders by removing the default .png files that Cordova generates and replacing with your own, just rename your file to screen.png at the end.

In my case I was able to run Splash Screen normally, I hope it was useful.

    
28.10.2015 / 03:45