Copy link to clipboard
Copied
We have a very odd bug happening... when the app auto-orients during startup, *sometimes* we get a black screen with working audio. We first noticed this happening on the the iPhone 6+; our landscape app, when the home button is on the left side, will start with the launch image upside-down, then auto-orient, and sometimes go to black. Sometimes this doesn't happen. When the app is launched with the home button on the right side, the launch image comes up right-side up, and it never black screens.
On all other devices, we don't see this initial upside-down launch image, regardless of starting orientation. However, if we launch the app with the home button on the right, then orient the device so that the home button is on the left before the launch image appears, *sometimes* it will black screen.
A few other items of note:
- we aren't listening for any orientation events
- we aren't listening for any resize events
- we can completely avoid the problem by changing autoOrients to false in the app xml, we'd just rather avoid that if there's another easy fix that allows us to keep auto-orientation
Copy link to clipboard
Copied
An easy fix might be to just enable auto orientation a short while after application has been launched (stage.autoOrients = true;) and -like you said- set autoOrientation to false in app.xml.
Copy link to clipboard
Copied
The problem is that the first thing you see happens before the app has started.
It appears to be an iOS 8 issue, and not an AIR or iPhone 6+ one. If I open any app that is a landscape app on my iPhone 5, the initial launch screen is going to be upside down one way or another. For example, Contre Jour happens to have a splash screen designed for the home button being on the left (which is incorrect, but still), and so it looks correct when the home button is on the left, but upside down when the button is on the right.
For most other apps, that have the landscape screen correct (based on the home button being on the right), the behavior is the opposite, like you are seeing.
You could try settings auto orient to be off, and then turn it on in your code, but I think it won't fix the problem. It's as if iOS shows the first screen based on how you should be holding the device, not how you're actually holding it. Maybe Apple are trying to train us to hold it correctly.
Copy link to clipboard
Copied
Here's one interesting thing:
Unity - Unity Patch Release 4.5.5p1
Those are Unity bug fixes, one of which is "(634276) - iOS: Work around an Xcode splash screen bug in iOS 8 landscape iPhone apps.", which both backs up what I was saying about it being an iOS 8 iPhone problem, but also suggests that it's possible to work around the issue,
Copy link to clipboard
Copied
An app I submitted using AIR 15 build 349, which included both variations of the spelling of the iPhone 6 & 6+ splash screens, still goes through a black screen on startup. That's under iOS 8.1.
So, I guess AIR isn't quite fixed yet!
Copy link to clipboard
Copied
We have this issue in our project.
Adobe Team - do you know about this bug?
It reproduced on AIR 18 - 20