消息不是从GCM服务器获取 [英] Message is not getting from the Gcm Server

查看:150
本文介绍了消息不是从GCM服务器获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想实现使用GCM聊天服务。我按照以下链接<一个href=\"http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/\"相对=nofollow>这个
我能够注册的设备,但没有得到消息到设备,我得到了这样的输出从PHP端

<$p$p><$c$c>{\"multicast_id\":4761920147140850331,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1396947152466532%978fee92f9fd7ecd\"}]

我试图发送使用 http://gcm-alert.appspot.com/ 消息
得到响应成功,但没有显示在设备上。

我使用的浏览器的API密钥


解决方案

输出显示消息发送成功,有什么不对的应用层面,它很难说没有任何细节,但要确保您连接到互联网并确保消息不被阻塞你的防火墙,它发生在我身上时,我被我们的企业网络

在测试我的应用程序

Hi I am trying to implement a chat service using gcm. I follow the below link this I am able to register the device but not getting the message to the device, i got an output like this from the php side

{"multicast_id":4761920147140850331,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1396947152466532%978fee92f9fd7ecd"}]

i tried to send the message using http://gcm-alert.appspot.com/ getting a response success but not showing on the device.

I am using browser api key

解决方案

the output shows the message is sent successfully, there is something wrong on application level, its hard to tell without any details, but make sure you are connected to internet and make sure that messages are not getting blocked by your firewall, it happened to me when I was testing my app on our corporate network

这篇关于消息不是从GCM服务器获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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