Using the update framework

Managing updates to applications can be tedious. The update framework for AdobeAIR applications provides APIs that enable developers to provide robustupdate capabilities in AIR applications. The AIR update framework performs the following tasks for developers:

  • Periodically check for updates based on an interval or when the user requests

  • Download AIR files (updates) from a web source

  • Alert the user on the first run of the newly installed version

  • Confirm that the user wants to check for updates

  • Display information on the new update version to the user

  • Display download progress and error information to the user

The AIR update framework supplies a sample user interface for your application. It provides the user with basic information and configuration options for application updates. Your application can also define a custom user interface for use with the update framework.

The AIR update framework lets you store information about the update version of an AIR application in simple XML configuration files. For most applications, setting up these configuration files to include basic code provides a good update functionality to the end user.

Even without using the update framework, Adobe AIR includes an Updater class that AIR applications can use to upgrade to new versions. The Updater class lets an application upgrade to a version contained in an AIR file on the user’s computer. However, upgrade management can involve more than simply having the application update based on a locally stored AIR file.