#endif /* MSG_WEARABLE_PROFILE */
return err;
}
-
-
-void MsgBootMsgMgr()
-{
- bundle *bundle_data = bundle_create();
-
- bundle_add_str(bundle_data, "cmd", "on_boot");
-
- msg_launch_app(MSG_MGR_APP_ID, bundle_data);
-
- bundle_free(bundle_data);
-}
#include "MsgCmdHandler.h"
#include "MsgUtilFile.h"
#include "MsgUtilStorage.h"
-#include "MsgNotificationWrapper.h"
#include <errno.h>
#include <glib.h>
}
MsgInitSensor();
- MsgBootMsgMgr();
/* plugin manager initialize */
MsgPluginManager::instance()->initialize();
void MsgRefreshAllNotification(bool bWithSimNoti, bool bFeedback, msg_active_notification_type_t active_type);
-void MsgBootMsgMgr();
-
#endif
alarmCBMap.clear();
- int retval = alarmmgr_init("msg-service-tools");
+ int retval = alarmmgr_init(MSG_MGR_APP_ID);
if (retval != ALARMMGR_RESULT_SUCCESS) {
MSG_MGR_DEBUG("alarmmgr_init error [%d]", retval);
return -1;
MsgMgrChangePmState();
}
-void _on_boot_func(app_control_h app_control)
+void _on_boot_func()
{
MsgMgrOnBoot();
}
_sound_play_start_func(app_control);
} else if (g_strcmp0(cmd, "change_pm_state") == 0) {
_change_pm_state_func(app_control);
- } else if (g_strcmp0(cmd, "on_boot") == 0) {
- _on_boot_func(app_control);
} else if (g_strcmp0(cmd, "reply_msg") == 0) {
_reply_msg_func(app_control);
}
g_free(cmd);
+ } else if (ret == APP_CONTROL_ERROR_KEY_NOT_FOUND) {
+ MSG_MGR_INFO("on boot");
+ _on_boot_func();
}
}
g_free(operation);
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.msg-manager" version="1.0.0">
<profile name="mobile"/>
- <service-application appid="org.tizen.msg-manager" auto-restart="false" exec="msg-manager" multiple="false" nodisplay="true" on-boot="false" taskmanage="false" type="capp">
+ <service-application appid="org.tizen.msg-manager" auto-restart="false" exec="msg-manager" multiple="false" nodisplay="true" on-boot="true" taskmanage="false" type="c++app">
<label>msg-manager</label>
<icon>msg-manager.png</icon>
<background-category value="system"/>