[英]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。
Here is the answer : 这是答案:
http://social.msdn.microsoft.com/Forums/windowsazure/en-US/828e84fc-8441-4aa4-b33e-4f73bdcf1488/opening-a-page-when-user-clicks-on-a-toast-notification http://social.msdn.microsoft.com/Forums/windowsazure/zh-CN/828e84fc-8441-4aa4-b33e-4f73bdcf1488/opening-a-page-when-user-clicks-on-a-toast-notification
Hope it can help people later ! 希望以后能对人们有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.