Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Creating notifications from a service, Tizen wearable 2.3.2
I am trying to create a service that can post notification to users.
void set_notification(void)
{
notification_h notification = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);
if(notification != NULL)
{
dlog_print(DLOG_INFO, “FALL_DETECTION”, “Hello World from a notification!”);
notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, “Alarm”, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_time_to_text(notification, time(NULL), NOTIFICATION_TEXT_TYPE_CONTENT);
notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, “Failure of Valve 4”, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
//notification_set_display_applist(notification, NOTIFICATION_DISPLAY_APP_ALL);
notification_set_size(notification, 0.5);
notification_set_layout(notification, NOTIFICATION_LY_ONGOING_EVENT );
notification_set_vibration(notification, NOTIFICATION_VIBRATION_TYPE_DEFAULT, NULL);
int ret = notification_post(notification);
if (ret == NOTIFICATION_ERROR_NONE)
dlog_print(DLOG_INFO, “FALL_DETECTION”, “Notification created!”);
else if(ret == NOTIFICATION_ERROR_INVALID_PARAMETER)
dlog_print(DLOG_INFO, “FALL_DETECTION”, “Notification has invalid parameter!”);
else
dlog_print(DLOG_INFO, “FALL_DETECTION”, “Permission for notification denied!”);
}
}
The notification_post returns NOTIFICATION_ERROR_NONE but the notification doesn’t appear. Any advice ?
Thanks!
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio