需要Microsoft推送通知TTL和有效负载信息 [英] Microsoft push notifications TTL and payload info required

查看:75
本文介绍了需要Microsoft推送通知TTL和有效负载信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Windows Phone的MPNS(Microsoft推送通知服务),我有几个问题.

I have few questions regarding MPNS(Microsoft Push Notification Service) For Windows Phone.

我们知道Windows Phone中有三种类型的推送通知

As we know there are three types of Push Notifications in windows phone

1.吐司通知
2. Shell Tile通知
3. 原始数据通知

1. Toast Notification
2. Shell Tile Notification
3.  Raw Data Notification

1.我们可以同时显示Toast和Tile吗?表示何时通过MPNS接收了吐司,并且它也为我的应用程序磁贴也更新了我的磁贴计数.

1. Can we show Toast and Tile at the same time. Mean when toast is received via MPNS and it also updates my tile count too for my app tile.

2.假设我的应用未启动,并且未处于运行状态或处于后台.如果有一些吐司或瓷砖的通知.服务器在此推送中发送一些有效负载.在推送后启动应用程序时,我们可以得到它吗? 应用中的有效负载.

2. Suppose my app is not launched and its not in running state or its in background. If there is some toast or tile notification is received. And server send some payload in this push. Can we get that when app launched after the push and we can get this payload within our app.

3.什么是TTL(生存时间)推送时间,或者我们可以在有效负载中设置它?

3. What is TTL(Time To Live) time of push or can we set that within our payload.

推荐答案

1.不,每个推送通知只能有一种有效负载类型.因此,要更新图块并显示Toast,您需要发送两个通知.

1. No, you can only have one payload type per push notification.  So to update the Tile and show a Toast you would need to send two notifications.

2.应用程序启动时,有效负载中唯一可用的信息是LaunchUri中的内容.

2. The only information from the payload which is available when the application launces is what's in the LaunchUri.

3.与TTL最接近的是有效负载的X-NotificationClass值,该值还可以确定在丢弃通知之前等待设备重新连接的最长时间.

3. The closest thing to TTL is the X-NotificationClass value of the payload which can also determine the maximum time to wait for the device to reconnect before discarding the notification.

http://msdn.microsoft.com/zh-cn/library/windowsphone/develop/hh202945(v = vs.92).aspx


这篇关于需要Microsoft推送通知TTL和有效负载信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆