cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spencer Elliott (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11404) Enabling cordova-plugin-splashscreen on iOS forces iPhone 4 resolution on larger iPhones
Date Thu, 09 Jun 2016 18:01:20 GMT

     [ https://issues.apache.org/jira/browse/CB-11404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Spencer Elliott updated CB-11404:
---------------------------------
    Description: 
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!

  was:
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!


> 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
>              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


Mime
View raw message