0 Replies Latest reply on May 23, 2012 2:44 PM by Jason Woodcock

    Application Update Framework in Mobile Based App

    Jason Woodcock Level 1

      Alright, I have a tabbed application that I target mobile tablets with (iPad, and Android). However, I also export it as a desktop app. Now, the problem I am running into, is integrating the application update framework to execute when the app loads on the desktop only version (obviously the app store is handling the updates on the tablets).


      On creation complete, I am calling the updateCheck:



      //Update Framework Related
                          import air.update.ApplicationUpdater;
                          import air.update.ApplicationUpdaterUI;
                          var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); 
                          protected function updateCheck(event:FlexEvent):void
                                    appUpdater.configurationFile = new File("app:/updateConfig.xml"); 


      My updateConfig.xml looks like:



      <?xml version="1.0" encoding="utf-8"?> 
      <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0"> 


      My updateDescriptor.xml consists of:



      <?xml version="1.0" encoding="utf-8"?>
      <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
        * New Feature: Auto Update Framework - Always keeps your app updated with the latest releases!
        * New Feature: Live Searching - Filter projects on the Projects page simply by typing!
        * Various minor bux fixes.
        * Various graphical inconsistancy fixes. 


      However, when I execute the app, I get this error:



      Error #2044: Unhandled error:. text=Unhandled exception TypeError: Error #1009: Cannot access a property or method of a null object reference.


      And the app debugger highlights the following in updateConfig:





      Any ideas guys?