AppMobi.updateAvailable

A boolean indicating whether an update is available to the application or not

AppMobi.updateAvailable

Description:

This property will indicate whether a Live Update is available for an application by returning a true or a false. It is only set following the appMobi.device.ready event. A true result indicates that an update is available and has not yet been installed.

Example:


document.addEventListener("appMobi.device.ready",onDeviceReadyTestForUpdate,false);
function onDeviceReadyTestForUpdate(evt)
{
  /* appMobi.updateAvailable indicates whether or not an over the air update is available or not. */
  if (AppMobi.updateAvailable==true)
  {
    //there is an application update available at startup
    if (confirm(AppMobi.updateMessage)==true) {
      AppMobi.device.installUpdate();
    }
  }
}
             

Version:

This property is available in appMobi Version 3.3.0