app_control_set_operation (service, APP_CONTROL_OPERATION_DEFAULT);
app_control_set_app_id (service, noti_data->launch_app.c_str ());
- notification_set_launch_option (notification, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)service);
+ ret = notification_set_launch_option (notification, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)service);
+ if (ret != NOTIFICATION_ERROR_NONE) {
+ LOGW ("Failed to set launch option. error code : %d", ret);
+ }
ret = notification_insert (notification, ¬i_data->noti_id);
if (ret != NOTIFICATION_ERROR_NONE) {
LOGW ("Failed to insert notification. error code : %d", ret);