Spencer Elliott created CB-11404:
------------------------------------
Summary: Enabling cordova-plugin-splashscreen on iOS forces iPhone
4 resolution on larger iPhones
Key: CB-11404
URL: https://issues.apache.org/jira/browse/CB-11404
Project: Apache Cordova
Issue Type: Bug
Components: Plugin SplashScreen
Affects Versions: 3.2.0
Environment: OS X version 10.11.5
Xcode version 7.3.1 (7D1014)
Cordova CLI version 6.2.0
cordova-ios version 4.1.1
cordova-plugin-splashscreen version 3.2.2
Node.js version 4.4.3
Reporter: Spencer Elliott
When configuring a new Cordova project with cordova-ios and
cordova-plugin-splashscreen, the app launches with iPhone 4 resolution, even on
larger iPhones (tested iPhone 5s simulator, iPhone 6 simulator, and iPhone 6
physical device).
Steps to reproduce:
{noformat}
cordova create MyApp
cd MyApp
cordova platform add ios --save
cordova plugin add cordova-plugin-splashscreen --save
mkdir res
curl 'https://placehold.it/1242x2208' -Lo res/splash.png
{noformat}
Edit config.xml to include this configuration:
{noformat}
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<splash src="res/splash.png" width="320" height="480"/>
<splash src="res/splash.png" width="640" height="960"/>
<splash src="res/splash.png" width="768" height="1024"/>
<splash src="res/splash.png" width="1536" height="2048"/>
<splash src="res/splash.png" width="1024" height="768"/>
<splash src="res/splash.png" width="2048" height="1536"/>
<splash src="res/splash.png" width="640" height="1136"/>
<splash src="res/splash.png" width="750" height="1334"/>
<splash src="res/splash.png" width="1242" height="2208"/>
<splash src="res/splash.png" width="2208" height="1242"/>
</platform>
{noformat}
Run the app on an iPhone 5s (or larger device):
{noformat}
cordova run ios --target=iPhone-5s
{noformat}
And the app will launch with black bars at the top and bottom:
!http://i.imgur.com/4L56fdB.png!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]