Skip to main content
Participating Frequently
September 24, 2014
Question

ios 8 stage orientation issues

  • September 24, 2014
  • 5 replies
  • 3912 views

I have a multi-million download iOS app built with Adobe AIR. The whole app x and y axis gets shifted if I launch the app in portrait mode then programmatically change to landscape mode. This happens specifically when I rotate the device to activate the StageOrientationEvent.ORIENTATION_CHANGE event. The red rectangle on the screenshot denotes the new x and y (0,0) coordinates while holding the device in landscape mode. The black area is basically a dead zone. When I click the Home button on the iPad, all the icons are in portrait mode even thou I am holding the device in landscape mode. This is a universal app. The fix that i have in place is breaking the app for iPhone users but fixing it for iPad users.  Adobe, can you help??? Issues happens with AIR 14 and AIR 15.

This topic has been closed for replies.

5 replies

Known Participant
August 28, 2015

upgrade air sdk to 17 ,and if you are using ad in app,you can try keymobdev/Adobe-Air-ANE · GitHub

pBoom
Participant
March 24, 2015

Same here. Our game developed with Starling is broken exactly in the same way. We're using AdColony ANE which shows fullscreen videos in fullscreen mode. When the video window is closed, orientation is messed up.

When should we expect a fix? This issue seriously effects our release date.

Thanks!

Anki_AG_
Adobe Employee
Adobe Employee
March 25, 2015

Hi,

Thanks for reporting the issue.Could you please try out the latest SDK from Download Adobe AIR SDK . Please let us know if the issue persists.

Thanks,

Adobe Air Team

pBoom
Participant
March 25, 2015

Just downloaded and tried the latest SDK and unfortunately the issue persists. As you can see below. This happens when we show an AdColony video and after the video screen closes.

Participating Frequently
September 25, 2014

Jitender thakur, I have sample code that does the same thing and could not replicate. I am using iPad 3 and iPhone 5 in iOS 8. The same app works fine in iOS 7. The issue I have sounds like the consequence for an iOS 8 bug in a native library framework: iOS 8 - OF not setting orientation properly? - openFrameworks especially when they write: "The problem seems to be that iOS 8 no longer changes the screen bounding box after a rotation change. Thus OF tried to correct for the orientation and ends up swapping them unnecessarily (which was required before iOS 8)" ... "  "The app will initialize with OF_ORIENTATION_UNKNOWN and update to the chosen orientation, but the iOS device itself won't reorient." As I said before, when I get a shifted x and y axis and then I press the Home button of the device, the iPad main screen and icons are in portrait even while I am holding it in landscape orientation.

The problem with our code-base I have is that we have a draw() function that gets called on every UI object. These functions get called hundreds of times whenever there is an orientation change. I am trying to track which is activating the issue, so I can share with you. Now, I solved the problem by re-designing both the iPhone and iPad apps to launch and work in landscape mode only with autoOrient false.  This is not ideal,  but hopefully, the app won't get rejected. If I find a simple code example that replicated the issue, I will share immediately. 

Adobe Employee
October 15, 2014

Hi,

Could you please share a sample code with us so that we can reproduce the issue at our end as well.

Thanks.

Participant
January 12, 2015

Hi!

Jitender thakur

I reported this bug in adobe more than 2 months ago, but it is open/need more info nobody fixed it. I sent a sample code to reproduce it, also videos. Could you take a look please and try to fix it, since it continue happening? Is very annoying since apple will require to build with xcode 8 starting from february, I am now avoiding the issue building with Xcode7 but on February I can not.

This is the bug reported, please let me know if you need anything else.

Bug#3835192 - iPad 3( os 8.0.2 ) screen rotation issue - new iPhoneOS8.0.sdk - when enter foreground from background

Thank you very much,

Hernan

Adobe Employee
September 25, 2014

Thanks for reporting the issue.

We tried a sample code which by default remains in potrait mode but on pressing a button rotates the app to landscape mode. We tried on iOS 8 iPAD and it is working fine. Could you please share a sample code so that we can reproduce the issue at our end as well.

Also, is there any specific device that you are getting the issue on? Please mention the devices that you are using.

chris.campbell
Community Manager
Community Manager
September 24, 2014

Hi JD,

Have you opened up a bug report on this at bugbase.adobe.com?  If not, could you create one and post back with your bug number?  I'll follow up internally asap.

Thanks,

Chris