Adobe Air ApplicationUpdater Not Working - HTML / Javascript

SEESADMIMAH

New Member
I'm trying to add an auto update feature to an existing html/javascript based air application. I use sdk 3.5. When the code executes I get nothing. No error, no log, nothing. I do notice that when the code executes the memory usage goes up about 14mb.How can I catch for errors or other troubleshooting? Here is the code. application.xml:\[code\]<?xml version="1.0" encoding="utf-8" ?> <application xmlns="http://ns.adobe.com/air/application/2.5"> <filename>...</filename> <description>...</description> <customUpdateUI>false</customUpdateUI> <id>...</id> <versionNumber>2.0.2</versionNumber> <initialWindow> <content>index.html</content> <height>768</height> <width>1280</width> <systemChrome>standard</systemChrome> <transparent>false</transparent> <visible>true</visible> </initialWindow></application>\[/code\]HTML Head:\[code\]<script src="http://stackoverflow.com/questions/14449217/air/applicationupdater_ui.swf" type="application/x-shockwave-flash"/>\[/code\]Javascript:\[code\]var appUpdater = new runtime.air.update.ApplicationUpdaterUI();appUpdater.configurationFile = new air.File('app:/air/updateConfig.xml');appUpdater.initialize();appUpdater.checkNow(); //I've tried with and without this\[/code\]updateConfig.xml:\[code\]<?xml version="1.0" encoding="utf-8"?><configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0"> <url>http://.../update.xml</url> <delay>1</delay> <defaultUI> <dialog name="checkForUpdate" visible="true" /> <dialog name="downloadUpdate" visible="true" /> <dialog name="downloadProgress" visible="true" /> </defaultUI> \[/code\]update.xml:\[code\]<?xml version="1.0" encoding="utf-8"?> <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5"> <versionNumber>2.0.3</versionNumber> <url>http://.../app.air</url> <description>This is the latest version of the application.</description> </update>\[/code\]
 
Back
Top