GCM服务器知道成功交付 [英] GCM Server knowing of successful delivery

查看:89
本文介绍了GCM服务器知道成功交付的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我之为知之,一旦成功发布到GCM服务器通知时,它会返回200状态code,因此ID的响应= 1:2342

As far I as know, upon successful posting a notification to GCM Server, it will return a status code of 200 and a response as such id=1:2342.

不过,根据自己的文档,这并不能保证成功交付装置。交付通知GCM服务器只是一个成功的状态。

However, according to their documentation, this does not guarantee successful delivery to the device. Just a successful status of delivering the notification to the GCM server.

我的问题是,有没有办法让我知道,通知已成功发送到手机上?有没有在成功交付由GCM回到了我的身边交货通知?如果没有,任何你们都对跟踪那些什么想法?

So my question is, is there a way for me to know that the notification has been sent to the phone successfully? Is there a Delivery Notification returned by GCM to my side upon successful delivery? If not, does any of you guys have any ideas on keeping track of those?

感谢。

推荐答案

GCM不通知时,消息被发送到手机上你的服务器。

GCM does not notify your server when the message is sent to the phone.

如果您需要的功能,你必须自己实现它。您可以在消息标识符字段附加到GCM消息。当邮件到达的电话,您的应用程序将在该消息标识符发送回服务器(使用HTTP请求),以确认收到的消息。

If you require that functionality, you'll have to implement it yourself. You can attach a message identifier field to the GCM message. When the message arrives to the phone, your app will send that message identifier back to your server (using an HTTP request), to acknowledge that it received the message.

这篇关于GCM服务器知道成功交付的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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