c# - Receiving toast notifications on Wondows Phone when app is not running -
my toast message has next format:
class="lang-cs prettyprint-override">string toastmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<wp:notification xmlns:wp=\"wpnotification\">" + "<wp:toast>" + "<wp:text1>[string]</wp:text1>" + "<wp:text2>[string]</wp:text2>" + "<wp:param>[string]</wp:param>" + "<wp:mycustomparam1>[string]</wp:mycustomparam1>" + "<wp:mycustomparam2>[string]</wp:mycustomparam2>" + "<wp:mycustomparam3>[string]</wp:mycustomparam3>" + "</wp:toast>" + "</wp:notification>";
while app running can receive custom parameters (wp:mycustomparam1 , other) on shelltoastnotificationreceived(object sender, notificationeventargs e)
event handler keys in e.collection
but when app not running , notification comes, user taps on pop-up notification , app started, shelltoastnotificationreceived doesn't calls , notification lost.
so, how can custom parameters in case?
c# push-notification windows-phone-8 mpns
No comments:
Post a Comment