+}
+
+/**
+ * check register application
+ *
+ * #### Parameters
+ * - api : the api
+ * - appid : register application's id
+ *
+ * #### Return
+ * None
+ *
+ */
+void HS_ClientManager::checkRegisterApp(afb_api_t api, const std::string &appid)
+{
+ if(HS_AppRecover::instance()->registerRecoveredApp(api, appid)) {
+ AFB_INFO("register recover application %s.", appid.c_str());
+ return;
+ }
+
+ if(startup_appid == appid) {
+ startup_appid.clear();
+// pushEvent("showWindow", nullptr, appid);
+ struct json_object* json_param = json_object_new_object();
+ json_object_object_add(json_param, _area, json_object_new_string(startup_area.c_str()));
+ pushEvent("showWindow", json_param, appid);
+ startup_area.clear();
+ }