1
votes

I setup everything in phonegapp application. After i drag and drop the CordovaLib.xcodeproj then change the splash screen inside my app icon & screen folder. But still app loading cordovaLib splash screen. So, i deleted screens from CordovaLib project and it's working. I have splash screen name as Default.png, [email protected] etc. But in config.xml file having some other name. But my app working with proper screens. Is i need to change in config.xml file.

enter image description here

<gap:splash gap:platform="ios" height="480" src="res/screen/ios/Default.png" width="320" />
<gap:splash gap:platform="ios" height="960" src="res/screen/ios/Default_at_2x.png" width="640" />
<gap:splash gap:platform="ios" height="1136" src="res/screen/ios/Default-568h_at_2x.png" width="640" />
<gap:splash gap:platform="ios" height="1024" src="res/screen/ios/Default-Portrait~ipad.png" width="768" />
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/Default-Landscape~ipad.png" width="1024" />
<gap:splash gap:platform="ios" height="2048" src="res/screen/ios/Default-Portrait_at_2x~ipad.png" width="1536" />
<gap:splash gap:platform="ios" height="1536" src="res/screen/ios/Default-Landscape_at_2x~ipad.png" width="2048" />
1
Change your image file name as screen-iphone-portrait.png,screen-iphone-portrait-2x and replace into src="res/screen/ios/" - Fazil
But my app is working without screen-iphone-portrait.png name - user2967559
its showing the image or not? - Fazil
It's showing image... - user2967559
Be clear what image is now showing - Fazil

1 Answers

1
votes

Yes, your config.xml should always point to the correct location of your splash screens.

Whilst Xcode will ignore config.xml when choosing splash screens, the Cordova CLI does not. Attempting to build and run using the CLI will fail.

In addition, services such as PhoneGap Build will fail to build your app, and even some plugins will cause random errors because of a malformed config.xml, where a path points to a non-existent file.