You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Martin Mädler (JIRA)" <ji...@apache.org> on 2015/12/01 14:22:11 UTC

[jira] [Commented] (CB-9240) Cordova splash screen plugin iPad landscape mode issue

    [ https://issues.apache.org/jira/browse/CB-9240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15033664#comment-15033664 ] 

Martin Mädler commented on CB-9240:
-----------------------------------

I can confirm this issue is happening with our *iPad only* app, which is locked to landscape mode.

Which means that Deployment Info -> Device Orientation -> Landscape Left and Landscape Right is checked (Portrait options are unchecked). And in config.xml we have this
<preference name="Orientation" value="landscape"/>

To the issue. The device is in landscape mode; the splash screen in shown correctly in landscape mode; but as soon as I hide the splash screen from the app (using navigator.splashscreen.hide()), the landscape view of my app is weirdly rotated by 90 degrees. But the device remains in landscape mode, so parts of the app are being cut off. But in only happens with a limited set of iOS versions.

Tested on the iPad Air simulator.
iOS 8.1 - Issue present
iOS 8.2 - Issue present
iOS 8.3 - ok
iOS 8.4 - ok
iOS 9.0 - ok
iOS 9.1 - ok

The aforementioned patch (commenting out existing code) seems to fix the issue though. Thanks!

Maybe [~shazron] should take a look at this, who introduced this code in the first place?
https://github.com/apache/cordova-plugin-splashscreen/commit/52c025bbef54c1e6235ddbc1f9a5dbf06fec6387

> Cordova splash screen plugin iPad landscape mode issue
> ------------------------------------------------------
>
>                 Key: CB-9240
>                 URL: https://issues.apache.org/jira/browse/CB-9240
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin SplashScreen
>         Environment: iPad iOS 8
>            Reporter: Hetal
>              Labels: ios, landscape, plugin, splashscreen
>
> I am using the Cordova splash screen plugin (https://github.com/apache/cordova-plugin-splashscreen) in my hybrid mobile app targeted for iOS. I have all the splash screen images added to my project. The reason for using this plugin is to elongate the time for which the splash screen is shown and I manually hide it later in the app. So my config.xml has the following declarations:
> <preference name="AutoHideSplashScreen" value="false" />
> <preference name="ShowSplashScreenSpinner" value="false"/>
> This plugin works fine in the portrait mode on iPhone and iPad. But on the iPad in landscape mode, the plugin shows the splash image in portrait mode and consequently my first app view also shows in the portrait mode even though the device is in landscape mode. 
> The screenshots are available here: http://stackoverflow.com/questions/31035650/cordova-splash-screen-plugin-ipad-landscape-mode-issue



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