I tried to add alarm using Alarm API and when I tried to run the app using Emulator the alarm is not triggered on the given time. Please let me know if the Emulator support alarm API?
Given below the basic code I used.
var appId = tizen.application.getAppContext().appId;
var alarm = new tizen.AlarmAbsolute(new Date(2013, 4, 24, 10, 30)); // Time set for April 24th, 2013, 10.30AM
tizen.alarm.add(alarm, appId); // Setting the alarm
I added the following privileges in the config file:
<tizen:privilege name="http://tizen.org/privilege/alarm" />
<tizen:privilege name="http://tizen.org/privilege/application" />