用户点击Toast通知时打开一个页面

时间:2013-06-16 16:23:50

标签: azure windows-8 windows-runtime azure-storage

只要成功插入表格操作,我就会从Azure向我的Win 8应用程序发送一个Toast。 这是脚本

request.execute({
        success: function() {
            // Write to the response and then send the notification in the background
            request.respond();
            push.wns.sendToastImageAndText02(item.channel, {
                text1:' Blue Flame Detected !',text2 :'Please Click on the message for Instruction Set',Duration:'ToastDuration.Long',sound:'reminder',image1src:item.imageUri
            }, {
                success: function(pushResponse) {
                    console.log("Sent push:", pushResponse);
                }
            });
        }
    });

});

我希望toast在用户点击它时在我的应用程序中打开一个新页面。我知道toast有Activated事件,但我如何在Azure脚本中使用它?

1 个答案:

答案 0 :(得分:0)

您可以在Toast通知中传递launch参数。以下是Windows应用商店应用中的Toast通知示例,但您可以在Windows Azure推送通知服务中使用相同的方案。

How to pass arguments to an app activated by a toast notification

How to handle activation from a toast notification

相关问题