Opening the corresponding app screen by clicking on the notification
This code shows how to open corresponding app screen by clicking on the notification using AppControl functionality.
//specify app control for notification
var appControl = new tizen.ApplicationControl(
"http://tizen.org/appcontrol/operation/my_app_operation");
var notificationDict = {
content : "This is a simple notification.",
vibration : true,
appControl : appControl};
var notification = new tizen.StatusNotification("SIMPLE",
"Simple notification", notificationDict);
tizen.notification.post(notification);
//export app control functionality to config.xml
<tizen:app-control>
<tizen:src name="MyPage.html"/>
<tizen:operation name="http://tizen.org/appcontrol/operation/my_app_operation"/>
</tizen:app-control>