Automatic App Refreshes
The requirements to support automatic refreshes for a custom app are identical to the requiredments for user-initiated refreshes with one exception:
![*](bullet.gif)
The underlying mashup for this example, shown in
Mashup
EMML, is identical.
![*](bullet.gif)
The App Specification, however,
must identify the time interval to use for automatic refreshes in the
refreshinterval attribute on the
<app> element. This attribute identifies the time interval as a number of seconds which must be at least 5 seconds.
App Specification for Automatic Refreshes
The properties that were updated specifically for automatic refreshes in this example are shown in bold:
<app id="refreshTest" jsclass="Sample.RefreshTest" name="refreshTest"
minimizable="false" draggable="false" height="auto" width="auto"
refreshinterval="10" >
<title>Testing Automatic Refreshes</title>
<description>Custom App to test enabling the Refresh button.</description>
<properties/>
<presto-meta name="presto.desktopCompatible" type="text">true</presto-meta>
<presto-meta name="presto.phoneCompatible" type="text">false</presto-meta>
<presto-meta name="presto.tabletCompatible" type="text">false</presto-meta>
<requires>
<require name="jquery-tmpl" type="library" version="1.0"/>
<require src="js/app.js" type="script"/>
<require src="css/app.css" type="css"/>
<require src="html/app.html" type="html"/>
</requires>
</app>