}
- // CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0);
+ CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0);
- show_notify_messgae();
+ // show_notify_messgae();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Message popup sent");
//消息通知
void MsgCenterNotifyMessageProc(const Topic topic, Request* req)
{
- //unused(topic);
+ // unused(topic);
unused(req);
// WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyMessageProc !");
if (CheckPriority(topic)) {
- do_custom_fileoperate_service_check_msg(CUSTOM_FILEOPERATE_MSG_TYPE_MESSAGE_DATA_NOTIFY, nullptr, 0);
+ // do_custom_fileoperate_service_check_msg(CUSTOM_FILEOPERATE_MSG_TYPE_MESSAGE_DATA_NOTIFY,
+ // nullptr, 0);
+ OHOS::NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE);
+ OHOS::NotificationManager::GetInstance()->ShowNotify(OHOS::CreateMessageView, TOPIC_EVENT_MESSAGENOTE, true);
}
}