Andy Zhou created CB-12331:
------------------------------
Summary: JPG splash screens work on simulator but not work on real
device
Key: CB-12331
URL: https://issues.apache.org/jira/browse/CB-12331
Project: Apache Cordova
Issue Type: Bug
Components: Plugin SplashScreen
Reporter: Andy Zhou
My config.xml has added some JPG files for iOS splash screen, no Android splash
added.
<splash height="1136" src="res/ios/splash/Default-568h@2x~iphone.jpg"
width="640" />
<splash height="1334" src="res/ios/splash/Default-667h.jpg" width="750"
/>
<splash height="2208" src="res/ios/splash/Default-736h.jpg"
width="1242" />
<splash height="1242" src="res/ios/splash/Default-Landscape-736h.jpg"
width="2208" />
<splash height="1536"
src="res/ios/splash/Default-Landscape@2x~ipad.jpg" width="2048" />
<splash height="768" src="res/ios/splash/Default-Landscape~ipad.jpg"
width="1024" />
<splash height="2048" src="res/ios/splash/Default-Portrait@2x~ipad.jpg"
width="1536" />
<splash height="1024" src="res/ios/splash/Default-Portrait~ipad.jpg"
width="768" />
<splash height="960" src="res/ios/splash/Default@2x~iphone.jpg"
width="640" />
<splash height="480" src="res/ios/splash/Default~iphone.jpg"
width="320" />
That works fine on iOS simulator, but the splash screens not work on real
device, and causes cropped display (iPhone 4 aspect ratio) on iPhone 5/6.
I checked the DerivedData/[my app]/Build/Products/ folder, and there are two
folders: Debug-iphoneos and Debug-iphonesimulator, I found the package in
Debug-iphonesimulator has LaunchImage-700.png file, it has extension .png but
it actually a JPEG file.
This behaviour is weird and does anyone know the reason? Do we need some more
document to declare what happened and how to solve this issue?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]