Windows phone WNS 通知导航到特定页面

Windows phone WNS notification navigation to specific page

它是Windows运行时,Windowsphone目标项目。

我正在使用 Azure 和 Azure 通知中心。所以我的问题是有没有人如何导航到某个特定页面并发送像 id 这样的参数。

这是我的 toast 模板,如字符串中所述:

   var toast = @"<toast><visual><binding template=""ToastText01""><text id=""1"">" + datatoshow + "</text></binding></visual></toast>";

我应该使用原始通知还是其他通知类型。非常感谢。

这个 link 对我的问题没有帮助:

https://msdn.microsoft.com/en-us/library/windows/apps/hh761494.aspx

一个更好的文档页面是 Quickstart: Sending a toast notification's Specify launch parameters segment. The reference is in the toast element 定义。

将 toast 元素的 launch 属性设置为一个字符串,该字符串将在应用被激活时传递给该应用。然后应用程序可以根据该字符串进行切换。

var toast = @"<toast launch=""?page=foo&id=7""><visual><binding template=""ToastText01""><text id=""1"">" + datatoshow + "</text></binding></visual></toast>";