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 2017/07/09 14:14:00 UTC

[jira] [Closed] (CB-12952) Fall back to using configured splash screen of matching dimensions and opposite orientation when available, rather than default Cordova splash screen

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

jcesarmobile closed CB-12952.
-----------------------------
    Resolution: Won't Fix

Sorry, but this can't be done, it's an Apple requisite to provide different launch images with different sizes and for some devices also orientation. 
We could do this for the splash images on the plugin, but launch images will be displayed with the custom logo and that would be even worse. i

If you use the splash plugin, iOS first shows a launch image and then the splash plugin shows the same image again in a native view. The launch images can't be controlled and need the size apple wants.
If you don't use the plugin, only the launch images will be used, and as I said, you have to provide the sizes that Apple wants.

I would recommend you to look into the launch storyboard provided by the plugin, if you choose that option you don't need to provide all the sizes Apple want because the launch storyboard will be used instead of the launch images
https://github.com/apache/cordova-plugin-splashscreen/#launch-storyboard-images




> Fall back to using configured splash screen of matching dimensions and opposite orientation when available, rather than default Cordova splash screen
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-12952
>                 URL: https://issues.apache.org/jira/browse/CB-12952
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-splashscreen
>            Reporter: Joshua Bronson
>            Priority: Minor
>
> h2. Minimal reproduction steps:
> (For the sake of brevity, the following assumes you are targeting iPhone 6, 6s, or 7, but a similar procedure can be followed to reproduce on other devices.)
> # Set up a cordova project with the iOS platform, cordova-plugin-splashscreen, and add e.g. {{<splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>}} to your config.xml, where "res/screen/ios/Default-667h.png" is the path to your custom splash screen image with the dimensions indicated / matching your device.
> # Launch the app on the device while the screen is in *landscape* orientation.
> h2. Current Result
> Cordova's default splash screen is used.
> h2. Expected Result
> The splash screen specified in config.xml is used, just as it would have been if the screen had been in portrait orientation when the app was launched.
> h2. Rationale
> It is strictly preferable (and better aligned with the intent of the developer and expectations of the user) to show the same splash screen in landscape orientation that is shown in portrait orientation, even though the orientation won't match, compared to showing the default Cordova splash screen in the landscape orientation.
> It's easy for developers to not realize what the current behavior is, because 1. they only followed the plugin's documentation, which doesn't warn about this behavior clearly (even though it's totally a "gotcha"), and 2. developers didn't happen to test the splash screen in landscape mode, and so never encountered this before releasing to users. Then everyone gets an unpleasant surprise when they realize this has been happening in production.
> Any interest in adding logic to fall back to using a configured splash screen of matching dimensions and opposite orientation, when available, rather than the default Cordova splash screen?
> h2. Impact
> I've only encountered this while testing on an iOS device and using the https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/#legacy-launch-images method, but it may occur on other platforms and configurations too.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org