Splash screen weirdness on Cordova iOS w/landscape orientation preference


I’m trying to use App.setPreference(‘Orientation’, ‘landscape’); to make a landscape app. This works well, but it also cases strange Splash Screen behavior: On launch a landscape splash screen is quickly shown, then replaced by a portrait splash screen, then the app launches in landscape mode.

Any ideas why both landscape and portrait splash screen would be displayed?


// Set up resources such as icons and launch screens.
  'iphone': 'icons/icon-60.png',
  'iphone_2x': 'icons/icon-60@2x.png',
  'iphone_3x': 'icons/icon-60@3x.png',
  'ipad': 'icons/icon-76.png',
  'ipad_2x': 'icons/icon-76@2x.png'

  'iphone': 'splash/Default~iphone.png',
  'iphone_2x': 'splash/Default@2x~iphone.png',
  'iphone5': 'splash/Default-568h@2x~iphone.png',
  'iphone6': 'splash/Default-667h.png',
  'iphone6p_portrait': 'splash/Default-736h.png',
  'iphone6p_landscape': 'splash/Default-Landscape-736h.png',
  'ipad_portrait': 'splash/Default-Portrait~ipad.png',
  'ipad_landscape': 'splash/Default-Landscape~ipad.png',
  'ipad_portrait_2x': 'splash/Default-Portrait@2x~ipad.png',
  'ipad_landscape_2x': 'splash/Default-Landscape@2x~ipad.png'

// Set PhoneGap/Cordova preferences
App.setPreference('Orientation', 'landscape');


This seemed to solve the problem for me, although I wonder if I’m doing something else wrong because this seems like an issue that Cordova should not have by now.