Hi everyone!
I'm developing an IM app and I want to make a notification which will(on click) bring user back to my app and show suitable view to him.
This is my code (in CoffeeScript)
appControl = new tizen.ApplicationControl(
"http://tizen.org/appcontrol/operation/view_chat",
null)
notificationDict = {
content : message.get('text')
iconPath : 'icon.png'
vibration : true
appControl : appControl
}
notification = new tizen.StatusNotification(
"SIMPLE",
"#{contact.get('nick')}: #{message.get('text')}",
notificationDict
)
tizen.notification.post(notification)
How can I do that? Am I on the right way? Notification docs are not very useful...