对 Meteor 服务器向 Android 发送推送通知的一些疑问
我对 Meteor 服务器有一些疑问?是否会像Google C2DM那样发送推送通知?我的意思是,每当我们将数据推送到服务器时,该服务器就可以发送推送通知,或者它会定期推送?该服务器如何识别设备?有没有像C2DM这样的设备令牌?
I have some doubts with Meteor server? Whether will it send push notification like Google C2DM? I mean this server can send push notification whenever we are puling data to server or it will pushes in a periodic manner? How can this server identifies the devices? Is there any device token like C2DM?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦您将消息添加到队列中,Meteor 服务器就会推送消息。如果客户端正在等待推送消息(它们已连接),他们将(几乎)立即收到消息。
您无法识别客户端,Meteor 使用队列名称,因此您应该为每个设备使用唯一的队列名称(例如哈希唯一设备或用户信息)我不知道 C2DM 是如何工作的,所以我不知道其中的差异。
The Meteor server will push the messages as soon as you add them to the queue. If the clients are waiting for a push message (they are connected) they will receive the message (almost) instantly.
You can't identify clients, Meteor works with queue names, so you should use an unique queue name for each device (like hashing unique device or user info) I don't know how C2DM works, so I don't know the differences.