+ listener_list[listener->myUid()] = listener;
+}
+
+/**
+ * remove app register listener
+ *
+ * #### Parameters
+ * - listener_interface : listener interface
+ *
+ * #### Return
+ * None
+ *
+ */
+void HS_ClientManager::removeListener(listener_interface* listener)
+{
+ listener_list.erase(listener->myUid());
+}
+
+/**
+ * notify listener
+ *
+ * #### Parameters
+ * - api : the api
+ * - appid : register application's id
+ *
+ * #### Return
+ * None
+ *
+ */
+void HS_ClientManager::notifyListener(afb_api_t api, const std::string &appid)
+{
+ AFB_INFO("listen %s, notified", appid.c_str());
+ for(auto &it : listener_list) {
+ if(it.second->isListenAppId(appid)) {
+ it.second->notify(api, appid);
+ }
+ }
+
+ if(startup_appid == 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()));
+ startup_area.clear();
+ startup_appid.clear();
+ pushEvent("showWindow", json_param, appid);