You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2016/07/25 09:52:20 UTC
[jira] [Closed] (CB-11404) Enabling cordova-plugin-splashscreen on
iOS forces iPhone 4 resolution on larger iPhones
[ https://issues.apache.org/jira/browse/CB-11404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jcesarmobile closed CB-11404.
-----------------------------
Resolution: Not A Problem
Assignee: jcesarmobile
You are using the same image for all resolutions, Cordova doesn't resize the images, just copies them, you have to provide a different image for each resolution
> 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
> Assignee: jcesarmobile
> Labels: ios
> Attachments: Screenshot 2016-06-09 13.46.33.png, config.xml
>
>
> 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:
> !Screenshot 2016-06-09 13.46.33.png!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org