#include "mobileap_agent.h"
-#define MH_NOTI_APP_NAME "org.tizen.tethering"
+#define MH_NOTI_APP_NAME "setting-mobileap-efl"
#define MH_AGENT_PKG_NAME "mobileap-agent"
static int connected_noti_id = 0;
return MOBILE_AP_ERROR_INTERNAL;
}
- /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */
ret = notification_set_property(noti,
- NOTIFICATION_PROP_VOLATILE_DISPLAY |
- NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
+ NOTIFICATION_PROP_VOLATILE_DISPLAY);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_property [%d]\n", ret);
goto FAIL;
goto FAIL;
}
- /* Unnecessary Code before app control implementation */
- #if 0
ret = notification_set_application(noti, MH_NOTI_APP_NAME);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_application [%d]\n", ret);
goto FAIL;
}
- #endif
ret = notification_insert(noti, &timeout_noti_id);
if (ret != NOTIFICATION_ERROR_NONE) {
return MOBILE_AP_ERROR_INTERNAL;
}
- /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */
ret = notification_set_property(noti,
NOTIFICATION_PROP_DISABLE_AUTO_DELETE |
- NOTIFICATION_PROP_VOLATILE_DISPLAY |
- NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
+ NOTIFICATION_PROP_VOLATILE_DISPLAY);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_property [%d]\n", ret);
goto FAIL;
goto FAIL;
}
- /* Unnecessary Code before app control implementation */
- #if 0
ret = notification_set_application(noti, MH_NOTI_APP_NAME);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_application [%d]\n", ret);
goto FAIL;
}
- #endif
ret = notification_insert(noti, &connected_noti_id);
if (ret != NOTIFICATION_ERROR_NONE) {