Slightly related to: https://developer.tizen.org/forums/native-application-development/watch-face-countdown-timer
I'm currently working on creating a watchface (gear s3) and would like to display the next upcoming alarm set on the device (Alarm Widget) above the current time. I tried the approach described here, but the application fails to enter the foreach:
static bool on_foreach_registered_alarm(int alarm_id, void *user_data) { dlog_print(DLOG_INFO, TAG, "Checking: %d", alarm_id); // Does not get logged [...] return true; } static void create_base_gui(appdata_s *ad, int width, int height) { [...] dlog_print(DLOG_INFO, TAG, "Checking Alarms!"); // Gets logged ret = alarm_foreach_registered_alarm(on_foreach_registered_alarm, user_data); [...] } static bool app_create(int width, int height, void *data) { appdata_s *ad = data; create_base_gui(ad, width, height); return true; }
I'm fairly new to Tizen OS development, but I do suspect some sort of isolation going on between applications.
Can someone give me a hint on how to get the alarms set by the Alarm Widget?