notification_delete_all(NOTIFICATION_TYPE_NOTI);
ad->noti = notification_create(noti_type);
+ const char *tag = "minicontrol_music";
+ ret = notification_set_tag(ad->noti, tag);
+ if (ret != NOTIFICATION_ERROR_NONE) {
+ DEBUG_TRACE("Unable to set tag [%d]", ret);
+ }
ret = notification_set_property(ad->noti, NOTIFICATION_PROP_VOLATILE_DISPLAY);
if (ret != NOTIFICATION_ERROR_NONE) {
- DEBUG_TRACE("Cannot set the notification property");
+ DEBUG_TRACE("Cannot set the notification property [%d]", ret);
}
ret = notification_set_image(ad->noti, img_type, icon_path);
if (ret != NOTIFICATION_ERROR_NONE) {
- DEBUG_TRACE("Cannot set the notification image");
+ DEBUG_TRACE("Cannot set the notification image [%d]", ret);
}
ret = notification_set_display_applist(ad->noti, applist);
if (ret != NOTIFICATION_ERROR_NONE) {
- DEBUG_TRACE("Cannot set the display applist");
+ DEBUG_TRACE("Cannot set the display applist [%d]", ret);
notification_free(ad->noti);
}
notification_post(ad->noti);