IOS7 Orientation/AspectRatio Bug AIR 3.9

I have discovered a new bug in AIR 3.9 on iOS7. I am testing on iPAD2
How to replicate:
Create an app that auto-orient to any direction.
Create 1 button at the very top left that when clicked runs the following code:       this.stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
Hold your device in portrait mode with the home button at the bottom.... and run the app.
When the app boots up, click the button on the top left.
The app begins to rotate from portrait to landscape (as expected) but there is a problem. The stage has somehow offset itself.
The top left of your screen is no longer 0,0..... it is now 20,-20 (making your entire app look misaligned)
Here are some screenshots for proof (I outlined them so you can see the stage size)
Portrait mode before clicking the button:
Landscape Mode After clicking the botton:
I made my button with rounded corners so that you can see it being off the stage.
I tried this on Android and it doesnt seem to happen.. I'm guessing maybe this has something to do with the iOS Taskbar change.... because the amount it is offset is 20, (the taskbar height in non-retina)... though I'm not sure why it's offseting the X
Here is the project if you want to test it yourself:
http://www.filedropper.com/forcelandscapeorientation
Anyone else experienced this?

Yup we are also getting the same problem
(https://bugbase.adobe.com/index.cfm?event=bug&id=3658334)
But for us it is 100% reproducable on Ipad, Just rotate the device when the splash screen is visible and it crashes , we even tried to disable rotation but does not help. this bug only happen in IOS7/AIR3.9

Similar Messages

  • Samsung Galaxy Tab Orientation/aspectRatio Bug

    Hi there,
    we developed an App and defined <aspectRation>portrait</portrait> in the descriptor xml.
    We also set:
    <autoOrients>false</autoOrients>
            <fullScreen>true</fullScreen>
            <visible>true</visible>
            <softKeyboardBehavior>none</softKeyboardBehavior>
    The Samsung Galaxy Tab 2 7.0 gt-p3110 with Android 4.2.2 seems to ignore this setting and so the app always crashes.
    We tested it with Android 3.7 and 3.8 beta.
    Perhaps this is also the issue why the App becomes rejected on Samsung Apps...
    http://forums.adobe.com/thread/1212455?tstart=0
    Best
    omi

    Its been awhile, but if I remember correctly the Galaxy Tab's default orientation is Landscape where as most devices, certainly phones, tend to have their default orientation as Portrait. So my code actually detects Portrait mode as:
    var isPortraitView:Boolean;
    public function setIsPortraitView():void {
        // Each device, for AIR or for Android, can choose either Landscape mode or Portrait mode as the DEFAULT.
        // This means there is no system property to check for portrait mode, so we'll create our own.
        isPortraitView = (stage.fullScreenWidth < stage.fullScreenHeight);
    The apps I work with auto orient which won't happen if you set the Aspect ratio to Portrait or Landscape - regardless of how the AutoOrient flag is set. Setting the aspect ratio to auto just removes the line entirely from the app descriptor file.
    So my app at start up determines and sets isPortraitView and then checks the stage.orientation property against it like so:
    // Interpretes the given orientation against the given aspect ratio
    public function getIsPortrait(orientation:String, aspectR:Boolean):Boolean {
         var view:Boolean = false;
         switch (orientation) {
            case StageOrientation.DEFAULT:
            case StageOrientation.UPSIDE_DOWN:
                 view = aspectR;
                 break;
            case StageOrientation.ROTATED_LEFT:
            case StageOrientation.ROTATED_RIGHT:
                 view = !aspectR;
                 break;
            case StageOrientation.UNKNOWN:
            default:
                 break;
         return view;
    Later when my app gets orientation change events I use the above method to decode them. Remember though that as the device physically rotates clockwise the orientation events are received counterclockwise - think of it as a bubble on a level.
    Also there can be a problem with apps not reporting their capabilities correctly when first starting up. So my code actually takes it one step farther and when first setting isPortraitView I also use it to correctly set internal properties for width and height like so:
    // Capabilities reports screen resX and resY based on the mode the app starts in
    if (isPortraitView) {
        screenResLandscapeWidth = Capabilities.screenResolutionY;
        screenResLandscapeHeight = Capabilities.screenResolutionX;
    else {
        screenResLandscapeWidth = Capabilities.screenResolutionX;
        screenResLandscapeHeight = Capabilities.screenResolutionY;
    Also lets say I have an app with a stage width and height of 600x400 on a device with a 1280x800 screen. I finally had to hardcode these values as some devices would report stage.fullScreenWidth as 600 and at other times report it as the device's screen width of 1280. So I recommend always having your app configure its own internal properties at startup and then have your code only refer to those properties. That way if there's a problem with your app receiving bad data it's much easier to isolate it and code a workaround.
    I hope that helps.

  • Orientation Fix in AIR 3.7 for iOS 6?

    With the release of iOS 6 the auto orientation call backs in AIR 3.5 were depreciated. Does anyone know of a work around in AIR 3.7?

    You might want to take a look at this blog and the comments discussed - http://blogs.adobe.com/airodynamics/2012/09/28/orientation-changes-in-air/
    -Pahup

  • Safari ios7 issues on iPad Air - can't open new tabs - + sign closes app

    Safari ios7 issues on iPad Air - can't open new tabs or view other tabs.
    The + sign just closes the app every single time!
    In some cases, the back and forward buttons don't work.
    It's driving me crazy becuase if the webpage I'm on opens and ad or tab that I don't want to look at, I can't close it and go back, I have to retype the web address in and find where I was on the site!

    I, too, tried all the fixes...nothing worked.
    Found another thread on this forum and looks like a lot of us are having same problem.
    Next time it happens, go to SETTINGS/GENERAL/ABOUT and check to see it there is a "low memory" incident report.
    If there is:
    See the discussion thread "iPad Air Low Memory Crashes".
    Seems to be common....this could turn into a HUGH issue.

  • Ios7 introduced critical bugs, application no longer works.

    With Ios7 my application is having two problems:
         1) It no longer displays in landscape mode, only portrait. This has happened to my game that is already on the app store and was working fine. The game is now unplayable with stretched graphics. Downloading the game and running on an older ipod that is on iOS6 displays in landscape mode correctly, as well as generating a device test .IPA file (to install on the ios6) with CS5.5 fully updated.
         2) You can no longer install .IPA files for device testing on an ios7 device. It will display a grey icon and remain stuck forever in "stalling". The very same .IPA file will install and run correctly on an ios6 device.
    Are there fixes to these bugs? Will we have to submitt our games again to the app store?
    This is a very critical error. People that paid for my game can no longer play it. This needs to be fixed right now.

    Apple most complicated company. They like change own API so anyone who developed app - may meet some issues in new iOS version or it minor update. I don't like Apple for this.
    Quick publishing for device testing - I don't suggest to use this option. It's most slowest by performance. But it's have very fast compiling time. Don't forget to use AppStore publish profile for release version and performance benchmarking.
    For iOS7 copability you may use latest SDK. At this time it's v4 beta from http://labs.adobe.com/downloads/air.html and released SDK just 3.9 and have issues with some features. I use Beta in my all projects and don't have any issues or don't see they.
    Maybe iOS7 device don't incluse your UDID in provision?

  • Android - StageWebView - Loading PDF Bug - AIR 3.9

    I think I've discovered another bug in AIR 3.9. Tested on Galaxy S4, and Nexus 7
    When using the StageWebView on Android, PDFs will not load correctly. This works correctly on iOS and Desktop.
    a Event.Complete event is dispatched, but all you ever see is a white square with Zoom buttons on the bottom right.
    Has anyone else ever experienced this?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   applicationComplete="init()"
                   xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">   
        <fx:Script>
            <![CDATA[
                import spark.components.Application;
                public function init():void{
                    this.stage.scaleMode = StageScaleMode.NO_SCALE;
                    this.stage.align = StageAlign.TOP_LEFT;
                    var webView:StageWebView = new StageWebView();
                    webView.stage = this.stage;
                    webView.viewPort = new Rectangle(50,50,this.stage.stageWidth-100, this.stage.stageHeight-100);
                    webView.addEventListener(Event.COMPLETE, this._onLoadComplete);
                    webView.loadURL("http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_flashplayer12-0_release notes.pdf");
                private function _onLoadComplete($event:Event):void{
                    trace("COMPLETE");
            ]]>
        </fx:Script>
    </s:Application>

    I have also this problem on GalaxyTab2 10.1, Android 4.0.3, Air 3.9.0.121
    Complied with Air3.9, Asc 2.0.0.354071
    webView = new StageWebView(true);
    webView.stage = this.stage;
    webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
    webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, _onLocationChange);
    // webView.loadURL(new File(new File("app:/pdf/arbo.pdf").nativePath).url);
    webView.loadURL("http://www.spacex.com/sites/spacex/files/hyperloop_alpha-20130812.pdf");
    // webView.loadURL("http://www.google.com");
    11-16 14:31:19.979: I/dalvikvm(23528): Could not find method android.webkit.WebSettings.setAllowUniversalAccessFromFileURLs, referenced from method com.adobe.air.AndroidWebView.11-16 14:31:19.979: W/dalvikvm(23528): VFY: unable to resolve virtual method 635: Landroid/webkit/WebSettings;.setAllowUniversalAccessFromFileURLs (Z)V
    11-16 14:31:19.979: D/dalvikvm(23528): VFY: replacing opcode 0x6e at 0x003a
    11-16 14:31:20.002: I/webclipboard(23528): clipservice: android.sec.clipboard.ClipboardExManager@418a32f8
    11-16 14:31:20.033: D/FirewallPolicy(227): getURLFilterEnabled(true)
    11-16 14:31:20.041: D/FirewallPolicy(227): isUrlBlocked - Policy disabled
    11-16 14:31:20.041: I/ClipboardServiceEx(227): dismissUIDataDialog. service check
    11-16 14:31:20.049: D/WML_SISO(23528): InitPasteboardJni
    11-16 14:31:20.119: W/webcore(23528): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:2475)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore$EventHub.access$12600(WebViewCore.java:1217)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2587)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.WebView.sendOurVisibleRect(WebView.java:3410)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:958)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager.access$2100(ZoomManager.java:57)
    11-16 14:31:20.119: W/webcore(23528):      at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1428)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Handler.handleCallback(Handler.java:605)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Handler.dispatchMessage(Handler.java:92)
    11-16 14:31:20.119: W/webcore(23528):      at android.os.Looper.loop(Looper.java:137)
    11-16 14:31:20.119: W/webcore(23528):      at android.app.ActivityThread.main(ActivityThread.java:4514)
    11-16 14:31:20.119: W/webcore(23528):      at java.lang.reflect.Method.invokeNative(Native Method)
    11-16 14:31:20.119: W/webcore(23528):      at java.lang.reflect.Method.invoke(Method.java:511)
    11-16 14:31:20.119: W/webcore(23528):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
    11-16 14:31:20.119: W/webcore(23528):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
    11-16 14:31:20.119: W/webcore(23528):      at dalvik.system.NativeStart.main(Native Method)
    11-16 14:31:20.190: D/FirewallPolicy(227): getURLFilterEnabled(true)
    11-16 14:31:20.190: D/FirewallPolicy(227): isUrlBlocked - Policy disabled

  • IOS7 contact birthday bug

    I really enjoy the new iOS7 but discoverd a bug in the calendar app. When "birthday" is activated in the calendar app the date of the birthday of a particular person appears in the app one day before the actual event. In the contact app all birthdays are correct. In iCal on my Mac Book Pro the dates appear correct.
    The only solution was so far that I changed the date, saved it and changed it back to the old one. Then it appeared in the calendar app at the right date. But as I have a lot of birthday event of a lot of people (app. 700) and rely on its correct date and I am not able anymore to verify the correct birthday of every single person. Actually it should appear in the calendar app at the right time. I use the iPhone 4s and discovered the bug after the update to iOS7 and before update to iOS7.0.2. Meanwhile I updated to iOS7.0.2 but the bug remains.
    If I assign new birthday dates to contacts it fine but the problem is with the old ones already created before the update.
    Is there any other solution expect of going through all single contacts and resaving the date as mentioned? Thanks.

    In calendar app on the iPhone I deactivated Birthdays and activated it again. Now it seems to work again and the correct date appeares at the right date in calendar.

  • Major textfield bug AIR 3.7/3.8 on Android

    Hey guys, I was wondering if anyone encountered this bug and managed to fix it. If not (or if this is not my fault somehow), I will open a bug report about it.
    The bug does not happen on AIR 3.6 on any platform. It also does not happen on 3.7/3.8 for iOS. It only happens with 3.7/3.8 for Android.
    There is a classic text input textfield on the screen. It is a singleline textfield. But somehow, it works like a multiline text. Whenever I press enter, I get a line break. Did anyone experienced this problem before?
    Thanks everyone!

    Could you please share the Android device(OS version) , AIR 3.x version you are using. I tried with classic text input textfield(Flash professional CS6) with Android OS versions 2.3.1, 3.1 and 4.1.2 but could not able to reproduce the issue. Please share a sample project at nimitja@adobedotcom (if possibe) to reproduce the issue. This will help us investigating the problem.
    Regards,
    Nimit

  • BUG AIR Webkit : referrer empty after a redirect

    Hi all,
    I've noticed a bug with AIR 1.5.1 : the document.referrer is empty just after a HTTP redirection (status code 302).
    As a consequence, the referer for the final page is "http://adobe.com/apollo".
    I don't known if it's due to the Webkit port done by the AIR team or else a bug in the Webkit trunk.
    How can I make it fixed?
    Regards,
    jp

    This bug is not related to Flex (I don't use Flex). It's reproduced with only the AIR SDK 1.5.1 (that containins webkit version 34190). It's a pure AIR html application. Where can I post this AIR/webkit bug?

  • Ios7 dictionary management bugs?

    I like the new dictionaries in ios7.  However they seem to behave unexpectedly:
    - open a Japanese book in iBooks
    - select a word
    - choose Define
    - get "No definition found"
    - click Manage
    - all the dictionaries have a "cloud with arrow" icon next to them, which I assume means that the dictionary data need to be downloaded from the cloud
    - click the "cloud with arrow" icon next to "Japanese-English", it turns into an "x" icon
    - go back
    - Done (back to the book)
    - select the word again
    - choose Define
    - now I get dictionary entries
    This is good.  But I'm not online, so where did the dictionary data come from?  It certainly wasn't downloaded from anywhere.  That's one unexpected thing.
    The other thing is that dictionaries seem to randomly disappear, so I often need to keep following the steps above to re-add the "Japanese-English" dictionary (for example).  It seems impossible to "permanently" add a dictionary.
    Finally, I tried clicking the "cloud with arrow" icon while I was online, to see what would happen.  This time a circular progress icon appeared, and it took several minutes to complete -- so it seemed to be downloading data for the Japanese-English dictionary.  But the next day, the Japanese-English dictionary was gone again.
    How can a dictionary be enabled permanently?  And why does it seem to be unnecessary to download dictionary data?

    Hello Jasoniv,
    I have the same issue when I using different dictionary like Chinese- English dictionary and American English Oxford. I had called applecare and the they passed my case to a senior staff to handle. And the senior staff upgrad my case to their engineering department. During the period, they called me and ask me to submit some of my iphone's log to them. I was happy about that.
    However, I got reply today. I am the first one report such issue. They will not able to confirm whether this is a bug or not. They will keep an eye on it. But there is no solution for this issue right now.
    It was so frustrate that waiting few weeks for such an answer.
    I think all we can to is report via feedback form. And they might ignore it forever.

  • IOS7 push notification bug resets all apps to no notification

    It's the third time I get this bug on ios7. What happens is that out of the blue all push notification settings stop working and everytime I open an app it asks me if I want to allow push notifications. When this happens the battery is drained lot faster and I have to reset the phone to factory settings to get things working fine again. I have an Iphone 4 16gb with latest ios7 build.

    It happened again yesterday. The phone died on battery and when I powered it on boom!! Every app now asked to allow for push notifications. I have a theory, as I was receiving messages on whatsapp before the phone died maybe what happens is if the phone is powered off while receiving a notification then this mess happens. I'll try to replicate.

  • I updated on IOS7 syncing with macbook air doesn´t work; says "iphone needs iTunes 11"

    I just updated my iphone 4 on ios7. Now syncing with my macbook air (itunes 11) doesn´t work anymore. It says "Iphone needs Itunes 11". Can You help me? What´s wrong or what was my mistake?
    HKBJ

    Make sure you have the Latest Version of iTunes Installed on your computer ( v 11.1)
    iTunes free download from www.itunes.com/download
    On your Computer... Click on the Apple icon.. Top left in Finder...
     > About this Mac > Version...what does it say?

  • Air bugs: Air apps wont open

    Hello,when I try the run any of my air apps. It wont open. I installed Magix Music Maker prior to this event. All my apps ran properly before this event.. My operating system is Windows 7. I have Adode Air installed on my computer. I have an Intel i3 2.10 GHz core processor. 4 gigs of memory.

    1. Settings>Safari>Clear History, Cookies and Data
    2. Hold the Sleep/Wake and Home button down for about 10 seconds until you see the Apple Logo

  • IOS7 has some bugs, Swipe changing lock screen! iphonehassomebugs

    Hi everyone,
    Iphone has some bugs(Part 1)
    Check this video for my very first bug experience,
    http://www.youtube.com/watch?v=QK_nIq4b82s&feature=youtu.be
    Steps to reproduce the issue:
    1. Keep the lock screen wallpaper and the home screen wallpaper different,
    2. Swipe right to unlock and swipe to the left immediately after you reach the right-end. Watch video for more reference.
    Other bugs on the way! .
    Regards,
    Sathish.

    Hmm, I have different wallpapers (one of my photo's for my lock screen and and just plain black for my home screen) and mine still does not do that.
    Try setting them both to something different, but simple - say different colors of one of the default screens.  Or just try one any pair of the default screens instead of your own custom pictures.  Does it still do it?  I cannot seem to get my iPhone to duplicate that no matter what I try with it.
    You can submit the info to Apple at http://www.apple.com/feedback/iphone.html  but try and give them as much details as you can, of anything you have tried that either does not change the abnormal behaviour or that does fix it.

  • IOS7 web app bug

    I have recently upgraded to IOS7. After launching a web app (like app.ft.com) and saved to home screen; when I relaunch from multitasking, IOS7 rebooted.

    Hi,
    This forum is to discuss problems of Office development such as VBA, VSTO, Apps for Office .etc. But I think your question is more related to the feature of Windows Phone or Office Web App.
    If you make sure this issue occurs in all Windows Phone, I suggest you posting in Windows Phone forum
    for more efficient responses.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for