Ok. So I have a function 'initUpdate'
[code]
public function initUpdate():void {
var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
appUpdater.addEventListener(UpdateEvent.INITIALIZED, updateInitialized);
appUpdater.addEventListener(UpdateEvent.CHECK_FOR_UPDATE, checkForUpdate);
appUpdater.addEventListener(UpdateEvent.DOWNLOAD_START, updateDownloadStarted);
appUpdater.addEventListener(UpdateEvent.DOWNLOAD_COMPLETE, updateDownloadComplete);
appUpdater.configurationFile = new File("app:/updateConfig.xml");
appUpdater.initialize();
trace(appUpdater.configurationFile);
trace(appUpdater.currentVersion);
trace(appUpdater.isUpdateInProgress);
}
[/code]
I followed all of the instructions.
updateConfig.xml:
[code]
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
<url>http://web/address/to/updateDescriptor.2.5.xml</url>
<delay>1</delay>
</configuration>
[/code]
updateDescriptor.2.5.xml:
[code]
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
<versionNumber>1.1</versionNumber>
<url>https://web/address/to/myApp.air</url>
<description>This is the latest version of the Sample application.</description>
</update>
[/code]
I packaged this app, then installed it on my computer.
then I created another app then increased the version number in 'application.xml'
I packaged the app and put it on the web 'https://web/address/to/myApp.air'
I opened the app that I had installed previously and did not receive any update prompt.
did I miss something?
from:
[code]
public function updateInitialized(ue:UpdateEvent):void {
trace('update initialized');
}
public function checkForUpdate(ue:UpdateEvent):void {
trace('check for update');
}
public function updateDownloadStarted(ue:UpdateEvent):void {
trace('update download started');
}
public function updateDownloadComplete(ue:UpdateEvent):void {
trace('update download complete');
}
[/code]
the only output I get is 'update initialized'. nothing else.
I am using the air 14 sdk.