消息不是从GCM服务器获取

编程入门 行业动态 更新时间:2024-10-20 05:47:38
本文介绍了消息不是从GCM服务器获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我想实现使用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服务器获取

本文发布于:2023-11-26 18:19:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634662.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是从   消息   服务器   GCM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!