简体   繁体   English

天蓝色移动服务添加参数Toast WinRT

[英]azure mobile service add parameter toast winRT

I use Azure Mobile Services notification in my app. 我在应用程序中使用Azure移动服务通知。 If my app is already launched, I have to get the id of the new product (by the notification) and do some treatments. 如果我的应用程序已经启动,则必须获取新产品的ID(通过通知)并进行一些处理。

I followed this tutorial : http://msdn.microsoft.com/en-us/library/windows/apps/jj709907.aspx 我遵循了本教程: http : //msdn.microsoft.com/en-us/library/windows/apps/jj709907.aspx

The problem is : how get id of this new product by accessing notificationContent ? 问题是:如何通过访问notificationContent获取此新产品的ID?

I try some things : 我尝试一些事情:

Azure side, on JS : Azure方面,在JS上:

                push.wns.sendToastText04(channel.currentkey, {
                      text1: "New product added : " + item.name,
                      param1: item.id});

or 要么

                push.wns.sendToastText04(channel.currentkey, {
                      text1: "New product added : " + item.name,
                      param: item.id});

or 要么

                push.wns.sendToastText04(channel.currentkey, {
                      text1: "New product added : " + item.name,
                      launch: item.id});

but can't get the id in notificationContent. 但无法在NotificationContent中获取ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM