Splash Screen Mobile

Asked

Viewed 412 times

3

  • Yes, it is the main config.xml. I also did not succeed with the splash plugin. What I do is create a timeout in javascript to redirect to another page, so I get the feeling that there is splash. The user doesn’t realize that underneath the covers this is it. I hope I’ve helped.

  • @Leonardomarinho thanks for the help, can be a temporary solution in my case but I really need to be able to get the native plugin to work for this

  • Well... at least temporarily already a force. Hugs.

1 answer

3

Well, I don’t know if you have already done the installation of Splashscreen puglin that is in the Cordova documentation, if you have already installed puglin, the next step would be to add the tags preferably to the "config.xml" document. In the case :

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

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

OBS.Remember that the preferences must be inside the tag Widget.

Still inside the briefcase Resources will contain two folders drawable-port for guidance in Portrait and the folder drawable-land for guidance in Landscape.

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

In my case I managed to run the Splash Screen normally, I hope to have been useful.

  • It worked perfectly thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.