Cordova splash screen plugin iPad landscape mode issue

968 views Asked by At

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 as below:

enter image description here

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. Below screenshot shows the splash screen and the black blank portion below it when the iPad is in landscape mode.

enter image description here

Any advise on how to resolve this issue?

1

There are 1 answers

0
majodev On BEST ANSWER