Skip to main content
Participating Frequently
December 14, 2016
Question

Landscape rotation on iOS 10.1

  • December 14, 2016
  • 11 replies
  • 4824 views

Since my bug submission fails all the time (good way to limit the backlog, guys, really...)

Problem Description:

When running an AIR app in landscape only mode, with autoOrients sets to true, on an iPhone, the launchimage will be oriented portrait mode - which is normal - then the app will rotate and the stage won't be able to detect touch inputs on the right part of the screen (nothing after the portrait width)

If you reorient the device, the touch inputs will work again. But if you dare to scroll down the Control Center or the Notification Center, the whole stage will be displaced until you reorient the device again...

Steps to Reproduce:

Create a simple project with AIR 24 beta, and iOS SDK 10.1, set the app.xml to landscape mode, autorients true and fullscreen.

Any Workarounds:

Set the orientation to "any", autoOrients to false, set orientation to landscape at runtime, wait for the stage to be sized correctly (width > height) and then use the accelerometer to reorient the stage when needed.

Of course, this is very annoying. I'm not even sure Apple won't reject the app because the NC and CC are showing left and right instead of up and down. But at least, the app is working as expected with the workaround.

This topic has been closed for replies.

11 replies

Participant
September 12, 2017

hello

I have this problem when I run IPA in MY iPhone and My iPad too

Participating Frequently
August 25, 2017

Hi,

This issue has been fixed with latest beta release (AIR 27.0.0.116). Please download the beta from Download Adobe AIR 27 Beta - Adobe Labs  .

Regards

Aakriti | Adobe Air Engineering

Inspiring
July 27, 2017

Maybe this might explain the issue?

rdar://31725316: Mobile - 'resize' Event Now Firing Prior to Page Layout

I know this is related to Safari but it shows that the resize event is broken on iOS 10.3.1 so it might be a track for adobe team.

Participant
July 21, 2017

We've been experiencing similar weirdness with an AIR app published with all AIR SDKs from 23 to 26 Beta, when run on iOS10 (and purportedly iOS11 Beta). Landscape only orientation, autoOrients = true.

* When launching the app, there's an odd flash of the splash screen (but distorted) for a frame.

* When rotating the app, the splash screen appears oddly 'masked' and stationary behind the rotating app. After a rotation, this stops happening, until you minimise the app and return to it...

* When resuming the app from minimised, the cached image presented during 'swap in' is a broken combination of portrait and landscape splash images overlaid.

* When 'resizing' the app with a resumption or pulling up (or down) the iOS utility trays, the stage becomes displaced (the degree seems related to the rotatedLeft or rotatedRight stat of the app at time of resizing).

Here's a test case (our pipeline uses ant/mxmlc/adt): http://clients.pluginmedia.net/temp/AIRios10issue.zip

You need to replace the following...

build-defaults.properties (point at the AIR SDK and flash libs locations)

certificates/ (add your cert and provisioning profile)

package.sh - replace the strings YOUR_CERT, YOUR_PASSWORD, YOUR_PROVISIONING_PROFILE. Check also the path pointing to the iOS SDK.

to build run $: ant ipa-build-debug

Attached is an image of the weirdly masked splash screen during rotation.

Participant
July 21, 2017

I should add that we're working around this issue at the moment by rolling back to AIR22 SDK in combination with XCode 7 (iOS9.3 SDK).

Participating Frequently
July 25, 2017

Hi,

Thank you for reporting the issue. We are investigating on it.

Thanks

(Aakriti) Adobe AIR Engineering

Participant
July 4, 2017

Hello,

I have using AIR SDK 26.0.0.112 and the problem persists.

Does this problem have anything to do with the Launch Images required to package for iOS?

Participating Frequently
July 5, 2017

Hi,

Have you tried packaging and installing your ipa using command prompt.

Does the problem still persists.

Could you please share you sample project and other details like how your are packaging and installing your app on iOS device.

Thanks

(Aakriti) Adobe AIR Engineering

Participating Frequently
June 16, 2017

Up.

pravishtis
Adobe Employee
Adobe Employee
March 17, 2017

Hi,

We tried the same app-xml provided by you but the issue is still not reproducible. We are attaching our project (along with the IPA): Dropbox - 1234iOS10.zip for your reference.

Thanks,

Adobe AIR Team

Participant
April 1, 2017

Hi,

I tried you Test project use AIR SDK25 + IOS SDK 10.3, landscape is Error.

This is my error image 1.png - Google Drive .

pravishtis
Adobe Employee
Adobe Employee
April 5, 2017

Hi,

We are attaching a video of the procedure being followed at our end (Dropbox - VID_20170405_161545[1].mp4). Please have a look and let us know in case we are missing out something.

Thanks,

Adobe AIR Team

Calibrae_Author
Participating Frequently
March 14, 2017

I could, but I'm not sure how that would help.

Try a project with this app.xml

<initialWindow>

  <content>SWF file name is set automatically at compile time</content>

  <visible>true</visible>

  <aspectRatio>landscape</aspectRatio>

  <autoOrients>true</autoOrients>

  <fullScreen>true</fullScreen>

  <renderMode>direct</renderMode>

  <depthAndStencil>true</depthAndStencil>

  <softKeyboardBehavior>none</softKeyboardBehavior>

</initialWindow>

compile it with ios 10.1 sdk and AIR 25 beta. and run it on an ios 10+ device with landscape mode.

AutoOrients does not work. And the stage is systematically displayed portrait mode.

Calibrae_Author
Participating Frequently
March 13, 2017

I had to revert using AIR 22, and ios 9.2. With orientation forced to portrait, autoOrient disabled, and setting the orientation at runtime.

Using the landscape orientation and running from a landscape Springboard reports a stage width > height, but display the lot in portrait, with the launchimage behind the stage on the bottom of the screen.

Trying my trick with AIR 25 beta and ios 10.1, same bug in forced portrait mode or landscape mode when running from a landscape springboard.

Seriously guys, I know Flash ain't Adobe's primary focus anymore, but this is a major fuckup.

pravishtis
Adobe Employee
Adobe Employee
March 14, 2017

Hi,

Since we are unable to reproduce the issue using your sample project, could you please send us a small video demonstrating the issue ?

Thanks,

Adobe AIR Team

Calibrae_Author
Participating Frequently
March 6, 2017

AIR 25 beta, still the same bug.

I tried to remove the "landscape" launchimages, same thing, no click event on the right part of the screen until I change rotation.

And when I drag out the Control Center or the Notification Center the display gets displaced.

Thanks for any update about this.

pravishtis
Adobe Employee
Adobe Employee
March 7, 2017

Hi,

We tried with the sample project provided by you with AIR 25 Beta (downloaded from Download Adobe AIR 25 Beta - Adobe Labs ) but the click events are occurring on the entire stage and not on the portrait width only.

Thanks,

Adobe AIR Team

Calibrae_Author
Participating Frequently
March 7, 2017

Did you try to get the control center of the notification center out on the screen too?

My test flow:

1/ I run the app (from landscape mode or portrait, it does not matter)

2/  Clicks on the right part of the screen do not work.

3/ The NC and CC can get pulled in with no problem

4/ I change the orientation of the device

5/ Clicks work wherever I touch the screen

6/ The NC and CC displace the stage and I need to change orientation again to get the stage displayed correctly again.

also, what IOS SDK are you compiling against? this bug occurs using ios 10.2

I've tested the app on three ios 10 devices Iphone 6, 6S and iPad Air 2 -> same problem. Considering we're using the same code, I can hardly think how this could be related to a problem on my part.

Devices running ios 9.x have no problem.