언어 설정

Menu
Sites
Language
Reminder in Tizen Native

Hello everyone ,

i had recently started working on a new App , in that i want to add the reminder that rings on the selected Date & Time.

I preffered this Link :

 https://developer.tizen.org/development/api-references/native-application?redirect=https://developer.tizen.org/dev-guide/3.0.0/org.tizen.native.mobile.apireference/group__CAPI__SOCIAL__CALENDAR__SVC__REMINDER__MODULE.html#ga43e03aba9572354f08f1d533d1545a92

But, I am not exactly getting How to proceed .

I want to Add reminder that notify at given time although if my app is closed .

Please Help ,

- Dinal Jivani

Responses

3 댓글
Yasin Ali

Hi,

As far as I know, Alarms API could be used to add reminder that rings on the selected Date & Time.
The main features of the Alarm API include:

  1. Setting an Alarm after Specific Time
  2. Setting an Alarm on a Specific Date
  3. Setting a Recurring Alarm at a Specific Time of the Day

Link:
https://developer.tizen.org/development/guides/native-application/alarm-and-scheduling/alarm#scenario_2

Alarm Sample Application:
The Alarm sample application demonstrates how you can implement recurring and on-time alarms using
the Alarm API from the Tizen Application Framework.
Link:
https://developer.tizen.org/development/sample/native/AppFW/Alarm

Alarm API:
The Alarm API allows setting an "alarm clock" for the delivery of a notification at some point in the future.
Link:
https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/latest/org.tizen.native.mobile.apireference/group__CAPI__ALARM__MODULE.html

Hope it will help you.
If you find my post is helpful for you, please mark it as answer to promote this post to others.

Dinal Jivani

i recently added the Alarm using the given API and Example from Link but ,

When the alarm is triggered at the scheduled time it need to open the another app using the app_id , this is not the exactly i want to add in my app,

 

i need to add reminder to my app that rings ( as Calendar Reminders ) at the scheduled time

i tried the _calendar_alarm api but its not able to add the calendar alarm, so i used the calendar events for checking ,

and it is working properly (but Without Reminder it only adds the event with the start and end date).

here is my code for Calendar Event :

calendar_connect();

calendar_record_h event;
calendar_record_create(_calendar_event._uri, &event);

dlog_print(DLOG_ERROR, LOG_TAG, "Dinal Hello there");

calendar_time_s st = {0};
st.type = CALENDAR_TIME_UTIME;
st.time.utime =1404036000 - 60; // 60 secs before 1404036000 (Sun, 29 Jun 2014 10:00:00 GMT)


calendar_time_s et = {0};
et.type = CALENDAR_TIME_UTIME;
et.time.utime = 1404036000; // 1404036000 (Sun, 29 Jun 2014 10:00:00 GMT)


calendar_record_set_str(event, _calendar_event.summary,"New Event");

calendar_record_set_caltime(event, _calendar_event.start_time, st);
calendar_record_set_caltime(event, _calendar_event.end_time, et);


int event_id = 0;
calendar_db_insert_record(event, &event_id);
calendar_record_destroy(event, true);
calendar_disconnect();

it successfully adds the "New Event " in Calendar , but what i need is reminder .

please help 

Dinal Jivani

Hello this is Dinal Jivani

i had solved my probelm by using the _calendar_alarm API , there were some mistakes last time ,

Thanks for the Answer