Just thought i'd add my input as I've actually been looking at this myself this morning for dekko. So in a confined app it's not really possible. The messaging menu entry is created by push-client [1] and at the moment they don't really support any of messaging menu's actions. Even if they did you would need some way to register a callback with push client, which from the context of an apps push helper registering a callback isn't really going to work in any sane way.
The only way to do it right now is unconfined and use libmessaging-menu directly, which is what telephony-service does for sms messages.
It would probably be worth filing a bug for menu actions in push-client
Hey guys!
Just thought i'd add my input as I've actually been looking at this myself this morning for dekko. So in a confined app it's not really possible. The messaging menu entry is created by push-client [1] and at the moment they don't really support any of messaging menu's actions. Even if they did you would need some way to register a callback with push client, which from the context of an apps push helper registering a callback isn't really going to work in any sane way.
The only way to do it right now is unconfined and use libmessaging-menu directly, which is what telephony-service does for sms messages.
It would probably be worth filing a bug for menu actions in push-client
[1] http:// bazaar. launchpad. net/~ubuntu- push-hackers/ ubuntu- push/trunk/ view/head: /messaging/ cmessaging/ cmessaging_ c.go