Set a time when you want your app to start automatically if it is not already opened.
When the alarm is fired, the global OnAlarm event will be fired.
Example - Set Alarm
function OnStart()
{
var now = Date.now();
app.SetAlarm( "Set", 1234, OnAlarm, Date.now() + 3000 );
}
function OnAlarm( id )
{
app.ShowPopup( "Got Alarm: id = " + id );
}