I have developed an App called Chess Repertoire with Corona SDK version 2014.2197. In this version of Corona when I launch the App on iPhone it starts on portrait mode. But if I launch on the iPad, the App starts on landscape mode.
Yesterday I tried to upload to AppleStore a new update of the App but I received an invalid binary message after an upload successful with “Application uploader 2.9.1”.
Then I update Corona SDK to 2014.2432 version and my App doesn’t start on landscape mode on the iPad.
Could anybody help me to solve this problem? Thanks in advance.
[lua]settings =
{
orientation =
{
default = “portrait”,
supported = { “portrait” }
–default = “landscapeRight”,
–supported = { “landscapeRight”, “portrait” }
},
iphone =
{
plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
},
UIAppFonts =
{
“ChessAlpha2.ttf”,
“FontAwesome.otf”
},
},
},
android =
{
–usesExpansionFile = true,
usesPermissions =
{
“android.permission.VIBRATE”,
“com.android.vending.BILLING”,
“android.permission.INTERNET”,
“com.android.vending.CHECK_LICENSE”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
},
supportsScreens =
{
smallScreens = true,
normalScreens = true,
largeScreens = true,
xlargeScreens = false,
},
},
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.google.iap.v3”] =
{
– required
publisherId = “com.coronalabs”,
supportedPlatforms = { android = true }
},
},
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationLandscapeRight”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationLandscapeRight”,
“UIInterfaceOrientationLandscapeLeft”
}[/lua]