【问题标题】:Windows phone WNS notification navigation to specific pageWindows phone WNS 通知导航到特定页面
【发布时间】:2015-02-17 21:38:35
【问题描述】:

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

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

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

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

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

此链接对我的问题没有帮助:

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

【问题讨论】:

    标签: c# azure windows-phone windows-phone-8.1


    【解决方案1】:

    一个更好的文档页面是Quickstart: Sending a toast notification 的指定启动参数部分。引用在toast element 定义中。

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

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多