Orientation Bug in Build 2014.2289 (App Launches Upside Down)

App launches upside down in either landscapeLeft or landscapeRight orientation. After a second it rotates to the correct orientation. This happens in apps built with 2014.2289. With build 2014.2275 the orientation works just fine.

I haven’t tested, but based on release notes I suspect this problem first appeared in build 2014.2277. Should I open a bug case for this?

This is my build.settings file:

settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft","landscapeRight" } }, iphone = { plist = { UIApplicationExitsOnSuspend = false, UIStatusBarHidden = true, UIPrerenderedIcon = true, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png" } } } }

Hi @polygonblog,

Yes, please file a bug report for this.

Thanks,

Brent

Ok, bug report filed (Case 32571).

This is my build.settings file:

settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft","landscapeRight" } }, iphone = { plist = { UIApplicationExitsOnSuspend = false, UIStatusBarHidden = true, UIPrerenderedIcon = true, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png" } } } }

Hi @polygonblog,

Yes, please file a bug report for this.

Thanks,

Brent

Ok, bug report filed (Case 32571).

Any news on this? Is there a workaround? Are other users seeing the same issue? Can’t release anything before this is fixed.

Hi @polygonblog.  I just looked at the bug report.  I was going download the project and see if I could see what was going on, but you only attached your build.settings file.  Bug reports need to be a complete project that shows the issue.  In this case, your build.settings might not be the problem, but something in your main.lua or perhaps it’s how your launcher images interact.  Please reply to the email with a complete project (config.lua, main.lua, build.settings and other support files) that demonstrate the issue.

Thanks

Rob

Hi Rob! Ok I just sent a complete bug case as a reply to the automatically generated bug case mail. Was that the email you wanted me to reply to?

Yes

A potential workaround includes adding plist settings to include your orientations supported. An example from our documentation is below, it should be modified for your specific supported orientations and use-cases.
We will look into a code change to automatically modify the plist settings based in the build settings.

settings =
{
iphone =
{
plist =
{
UISupportedInterfaceOrientations =
{ “UIInterfaceOrientationLandscapeLeft”,“UIInterfaceOrientationLandscapeRight” },
}
}
}

settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{ “UIInterfaceOrientationPortrait”,“UIInterfaceOrientationPortraitUpsideDown” }

Any news on this? Is there a workaround? Are other users seeing the same issue? Can’t release anything before this is fixed.

Hi @polygonblog.  I just looked at the bug report.  I was going download the project and see if I could see what was going on, but you only attached your build.settings file.  Bug reports need to be a complete project that shows the issue.  In this case, your build.settings might not be the problem, but something in your main.lua or perhaps it’s how your launcher images interact.  Please reply to the email with a complete project (config.lua, main.lua, build.settings and other support files) that demonstrate the issue.

Thanks

Rob

Hi Rob! Ok I just sent a complete bug case as a reply to the automatically generated bug case mail. Was that the email you wanted me to reply to?

Yes

A potential workaround includes adding plist settings to include your orientations supported. An example from our documentation is below, it should be modified for your specific supported orientations and use-cases.
We will look into a code change to automatically modify the plist settings based in the build settings.

settings =
{
iphone =
{
plist =
{
UISupportedInterfaceOrientations =
{ “UIInterfaceOrientationLandscapeLeft”,“UIInterfaceOrientationLandscapeRight” },
}
}
}

settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{ “UIInterfaceOrientationPortrait”,“UIInterfaceOrientationPortraitUpsideDown” }