Hi,
I'm developing a native app that needs to use the Alarm API to open itself at a determined time. I saw an example in Tizen web applications, the ExercisePlanner, available with SDK samples that does this, and I want to do that too, but using my native app.
This is the code I'm using:
app_control_create(&app_control1); app_control_set_operation(app_control1, APP_CONTROL_OPERATION_MAIN); app_control_set_app_id (app_control1, "org.tizen.alarmsample"); struct tm date; int alarmId = 0; alarm_get_current_time(&date); date.tm_mon +=1; date.tm_year += 1900; date.tm_min += 1; alarm_schedule_at_date(app_control1, &date, 0, &alarmId);
According with some logs, this code creates an alarm properly but, at the passed time, my app it's not called. It's ignoring it. Using the alarm_schedule_after_delay function, it works properly, since it uses only a delay to open the called app, not a date.
Is there anything wrong with the code? How may I solve this?
Regards.