Reputation: 145
In my phonegap based application.I have implement a project via ios.When i try to show the splashscreen. Its showing and a white screen diplays for a seconds and after that only application loading.What is the problem .please help me
Upvotes: 0
Views: 140
Reputation: 562
I had similar problem:
The steps to solve the problem are (works for me):
Add this line in config.xml of your project
Copy your splash screen files in: Resources/splash This files should be included in this path
And your index.html : to show splash screen
function onDeviceReady() {
navigator.splashscreen.show();
}
But... I set this line in my config.xml to auto hide the splash screen
<preference name="AutoHideSplashScreen" value="true" />
You can use the following steps for the splash screen
http://docs.phonegap.com/en/2.9.0/cordova_splashscreen_splashscreen.md.html#Splashscreen
Upvotes: 1