Alarm not working in Emulator
By anfas ci
24 Apr 2013 02:36
English
4 Replies
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" />
Edited on 18 03, 2014
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.