diff --git a/services/common/src/bundle_active_service.cpp b/services/common/src/bundle_active_service.cpp index a6da2d88476765fdaa5a12c7c1eed757bb93c048..e85f1409025a6daa1df887639a7e1569ed755f57 100644 --- a/services/common/src/bundle_active_service.cpp +++ b/services/common/src/bundle_active_service.cpp @@ -194,7 +194,7 @@ bool BundleActiveService::SubscribeAppState() BUNDLE_ACTIVE_LOGE("SubscribeAppState appstateobserver is null, return"); return false; } - int32_t err = appManager->RegisterApplicationStateObserver(appStateObserver_); + int32_t err = appManager->RegisterApplicationStateObserver(appStateObserver_, {}); if (err != 0) { BUNDLE_ACTIVE_LOGE("RegisterApplicationStateObserver failed. err:%{public}d", err); return false;