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"); 
                                    appUpdater.initialize();
        
                          }
      
      

       

      My updateConfig.xml looks like:

       

       

      <?xml version="1.0" encoding="utf-8"?> 
      <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0"> 
           <url>http://pro-linx.com/release/mscoast/updateDescriptor.xml</url> 
          <delay>3</delay> 
      </configuration>
      
      

       

      My updateDescriptor.xml consists of:

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
        <version>2.4.15</version>
        <url>http://pro-linx.com/release/mscoast/Pro-Linx-MS-Current.air</url>
        <description><![CDATA[
                v2.4.15
        * 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. 
        ]]></description>
      </update>
      
      

       

      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:

       

       

           <url>http://pro-linx.com/release/mscoast/updateDescriptor.xml</url> 
      

       

      Any ideas guys?