您好我想实现使用GCM聊天服务。我按照以下链接这个我能够注册的设备,但没有得到消息到设备,我得到了这样的输出从PHP端
{\"multicast_id\":4761920147140850331,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1396947152466532%978fee92f9fd7ecd\"}]我试图发送使用 gcm-alert.appspot/ 消息得到响应成功,但没有显示在设备上。
我使用的浏览器的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 gcm-alert.appspot/ 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服务器获取
发布评论