Fixed: AIR update framework broken!

Arrgh! All of a sudden the AIR Update Framework stops working.  No explanation, no errors; nothing. Where you’d expect to see your update notification popping up, you get a window just like the one above – no content, just the default Flex blue background colour.

The problem is actually a pretty specific one, but it’s not going to fix itself.  Using the Flex 3.5 SDK and the AIR Update Framework together causes this issue – obviously some part of the Flex SDK has changed between Flex 3.4 and 3.5, and no-one tested the framework before releasing it!  The issue is fixed in Flex 4 and doesn’t occur in anything other than the 3.5 SDK – so upgrading / downgrading is one solution; or…

Hack a solution:

Kudos to Richard Leggett for this solution; you can add an event listener for the StatusUpdateEvent.UPDATE_STATUS event, which includes this code:

try
{
var loader:Object = NativeApplication.nativeApplication.openedWindows[1].stage.getChildAt(0);
loader.content.application.visible = true;
}
catch(e:Error) { trace("Wait till Flex 4!"); }

And this will get things back and working again.

More information:

Read the official bug report in the bug management system.

,

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

4 Responses to “Fixed: AIR update framework broken!”

  1. sectore 30th January, 2010 at 4:39 pm # Reply

    That’s not really a fix, call it workaround ;)

    Fortunately Adobe has reopen SDK-24766 to review this bug these days: https://bugs.adobe.com/jira/browse/SDK-24766

    Hoping it will be fixed soon ;)

    -Jens

  2. James 30th January, 2010 at 10:32 pm # Reply

    Yep, not really a fantastic fix!

    The proper alternative to this workaround would be to fix the error properly – but that would mean making the fix in the source and recompiling the SWC files for the ApplicationUpdaterUI classes. Haven’t had time to try that one out, but it would be great if someone could.

    The disadvantage to this hack seems to be that the window always opens & then closes – doesn’t stay there for very long, but the opening is discernable. I guess this is also to do with the way that the interface has changed between SDKs.

  3. sectore 31st January, 2010 at 12:54 pm # Reply

    At SDK-24766 you will find an instruction by Horia Olaru to rebuild a applicationupdater_ui.swc. Unfortunally it did’nt work for me.

    The update framework is one of most important thing to build and deliver an AIR app. Personally I can’t understand, why Adobe does such a miserable job on it. Because it is not the first time that the applicationupdater_ui is broken, check SDK-22886 or just search for ApplicationUpdater or ApplicationUpdaterUI at the bug base: http://bugs.adobe.com/jira/

    What is the end of the story? You have to build your own ApplicationUpdaterUI, as I did for Flex 4 some months ago: Custom ApplicationUpdaterUI for using AIR Update Framework in Flex 4 However, that cant be the right way ;)

    -Jens

  4. James 3rd February, 2010 at 10:13 am # Reply

    It seems this issue has now been properly fixed by the Flex / AIR team, with the release of the Flex 3.5a SDK: http://blogs.adobe.com/air/2010/02/important_update_to_the_flex_3.html

Leave a Reply

Note: This post is over 2 years old. You may want to check later in this blog to see if there is new information relevant to your comment.