I am trying to create a Tizen app to be invoked from wearable webapp that fires an alarm at a certain time but it is never fired.
I've added these to the config.xml
:
<feature name="http://tizen.org/api/tizen" required="true"/>
<feature name="http://tizen.org/api/alarm" required="true"/>
<feature name="http://tizen.org/api/alarm.read" required="true"/>
<feature name="http://tizen.org/api/alarm.write" required="true"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
<tizen:privilege name="http://tizen.org/privilege/alarm"/>
And the following code in .js
file:
var alarm = new tizen.AlarmRelative(30);
tizen.alarm.add(alarm, "org.tizen.clock");
console.log("Alarm added with id: " + alarm.id);
When run, I get a correct id but the clock (or other apps) are never shown. The same happens when I try to schedule an AlarmAbsolute
.
What am I doing wrong?