• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

Black screen on orient after startup on iOS

Community Beginner ,
Oct 30, 2014 Oct 30, 2014

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

TOPICS
Development

Views

2.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 30, 2014 Oct 30, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 30, 2014 Oct 30, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 30, 2014 Oct 30, 2014

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,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 31, 2014 Oct 31, 2014

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 14, 2015 Nov 14, 2015

Copy link to clipboard

Copied

LATEST

We have this issue in our project.

Adobe Team - do you know about this bug?

It reproduced on AIR 18 - 20

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines