This is the basics of what I have:
var onError = function() { alert( "error" ); }
var appUpdater = new runtime.air.update.ApplicationUpdaterUI();
appUpdater.configurationFile = new air.File( "app:/updateConfig.xml" );
appUpdater.addEventListener( air.ErrorEvent.ERROR, onError );
appUpdater.initialize();
I loaded in all the appropriate framework files, the updateConfig.xml and the updateDescriptor.xml, and the URLs are for a localhost instance. I get no errors, and if I call the INITIALIZED UpdateEvent property, it is initializing.
My updateConfig.xml:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
<url>http://virtual.sandbox.com:81/updateDescriptor.xml</url>
<delay>0</delay>
<defaultUI>
<dialog name="checkForUpdate" visible="true" />
<dialog name="downloadUpdate" visible="true" />
<dialog name="downloadProgress" visible="true" />
<dialog name="installUpdate" visible="true" />
<dialog name="fileUpdate" visible="true" />
<dialog name="unexpectedError" visible="true" />
</defaultUI>
</configuration>
My updateDescriptor.xml:
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>1.1</version>
<url>http://virtual.sandbox.com:81/MyWidget.air</url>
<description><![CDATA[This is the latest version of the DOI Express Reorder widget.]]></description>
</update>
The application descriptor version node is set to 1.0. Any help would be appreciated.