无法使用GCM发送推送消息 [英] Can't send push messages using GCM

查看:76
本文介绍了无法使用GCM发送推送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的android应用程序中实现了GCM。我有1461个用户注册。我正在使用JSON方法将消息发送到服务器。当我尝试发送推送消息时,出现像


这样的错误批量(1461)上的邮件数量超过允许的最大数量(1000)


这是因为GCM对消息数量有限制吗?或者它是JSON的问题?

解决方案

@Basim Sherif您只能在一个请求中发送1000个用户,它是GCM为其他用户,您必须发送第二次请求

I have implemented GCM in my android app. I have 1461 users registered. I am using JSON method to send messages to server. When I try to send a push message I get an error like

"Number of messages on bulk (1461) exceeds maximum allowed (1000)"

Is it because GCM has a limitation for number of messages? Or is it a problem with JSON?

解决方案

@Basim Sherif you can only send 1000 user in one request, it is limitation of GCM for other user you have to send second request

这篇关于无法使用GCM发送推送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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