I use Azure Mobile Services notification in my app. If my app is already launched, I have to get the id of the new product (by the notification) and do some treatments.
I followed this tutorial : http://msdn.microsoft.com/en-us/library/windows/apps/jj709907.aspx
The problem is : how get id of this new product by accessing notificationContent ?
I try some things :
Azure side, on 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.
Here is the answer :
Hope it can help people later !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.