diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 4744a429e41f712723b31f336e09767e569c27b3..f5c0aafa3666c4ffa0f2d360b912a60e626d13e3 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -596,11 +596,6 @@ ErrCode AdvancedNotificationService::Publish(const std::string &label, const spt bool notificationEnable = false; if (request->GetReceiverUserId() != SUBSCRIBE_USER_INIT) { result = CheckNotificationEnableStatus(notificationEnable); - if (result != ERR_OK) { - result = ERR_ANS_INVALID_BUNDLE; - ANS_LOGE("Bundle notification enable not found!"); - break; - } if (notificationEnable) { result = PublishPreparedNotificationInner(request); break; @@ -2549,10 +2544,12 @@ void AdvancedNotificationService::OnBundleDataAdd(const sptr