diff --git a/frameworks/ans/src/notification_request.cpp b/frameworks/ans/src/notification_request.cpp index c046ff2af3dd4d8668b30a3084dce765c4429616..0825d3f0748d752f3175c5258bfdd2d3c5c3bf27 100644 --- a/frameworks/ans/src/notification_request.cpp +++ b/frameworks/ans/src/notification_request.cpp @@ -130,11 +130,13 @@ const std::shared_ptr NotificationRequest: void NotificationRequest::SetMaxScreenWantAgent(const std::shared_ptr &wantAgent) { + ANS_LOGI("enter"); maxScreenWantAgent_ = wantAgent; } const std::shared_ptr NotificationRequest::GetMaxScreenWantAgent() const { + ANS_LOGI("enter"); return maxScreenWantAgent_; } diff --git a/frameworks/js/napi/src/common.cpp b/frameworks/js/napi/src/common.cpp index e6fe747c0e34c78e63eac6903dbdc0c9cdfa90d4..908aa85bab56f1fa6dd40168df001fc516cba881 100644 --- a/frameworks/js/napi/src/common.cpp +++ b/frameworks/js/napi/src/common.cpp @@ -531,8 +531,10 @@ napi_value Common::SetNotificationRequestByWantAgent( napi_value wantAgent = nullptr; wantAgent = CreateWantAgentByJS(env, maxScreenAgent); napi_set_named_property(env, result, "maxScreenWantAgent", wantAgent); + ANS_LOGI("has maxScreenWantAgent"); } else { napi_set_named_property(env, result, "maxScreenWantAgent", NapiGetNull(env)); + ANS_LOGI("maxScreenWantAgent is null"); } return NapiGetBoolean(env, true); diff --git a/frameworks/js/napi/src/manager/napi_enable_notification.cpp b/frameworks/js/napi/src/manager/napi_enable_notification.cpp index 5ada940fc4186f038f261d6eb63491c85cce1e16..fa2ce848bdcc0be3ffd579aa1da4680428fa6274 100644 --- a/frameworks/js/napi/src/manager/napi_enable_notification.cpp +++ b/frameworks/js/napi/src/manager/napi_enable_notification.cpp @@ -234,6 +234,7 @@ napi_value NapiRequestEnableNotification(napi_env env, napi_callback_info info) ANS_LOGI("RequestEnableNotification napi_create_async_work start"); AsyncCallbackInfoIsEnable *asynccallbackinfo = static_cast(data); if (asynccallbackinfo) { + ANS_LOGI("RequestEnableNotification asynccallbackinfo start"); std::string deviceId {""}; asynccallbackinfo->info.errorCode = NotificationHelper::RequestEnableNotification(deviceId);