消息不是从GCM服务器获取 [英] Message is not getting from the Gcm Server
问题描述
您好我想实现使用GCM聊天服务。我按照以下链接<一个href=\"http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/\"相对=nofollow>这个
我能够注册的设备,但没有得到消息到设备,我得到了这样的输出从PHP端
我试图发送使用 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屋!