I am using PhoneGap
for creating iOS
application for iOS9+
. As per guide line I have added following code in Config.xml
to set the splash screen.
// set the cordova plugin
<plugin name="cordova-plugin-splashscreen" source="npm" spec=">1.0.0" />
// set splash screen for iPad only
<platform name="ios">
<gap:splash gap:platform="ios" height="2048" src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />
<gap:splash gap:platform="ios" height="2048" src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/Default-Landscape~ipad.png" width="1024" />
<gap:splash gap:platform="ios" height="1536" src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />
</platform>
Then I used following command in 'Terminal' to generate iOS platform
phonegap build ios --device
It copies all the splash images in iOS
platform.
But it show default Phonegap
splash screens image when I launch the app. I checked in iOS project 'Images.xcassets'-> 'LaunchImage
, it is showing default PhoneGap
images. It is not showing splash Image which I mentioned in Config.xml file. How do I set the splash images using config.xml
for iOS
?