GCM消息(或数据)限制 [英] GCM message(Or data ) limit

查看:78
本文介绍了GCM消息(或数据)限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用于发送推送通知的php代码。它适用于小数据(消息),但是当我尝试在推送通知中发送大字符串时它不工作。 GCM中发送的字符串是否有限制?如果有什么大小的话?

I have php code for sending push notification . It works for small data(message) but when i try to send large String in push notification its not working. Is there any limit on string to send in GCM ? if any what is size?

感谢您的支持

推荐答案

是,消息的有效负载上有 4096个字节的限制(其中包括有效负载中的所有自定义键和值)。

Yes, there is a limit of 4096 bytes on the payload of the message (which includes all the custom keys and values in your payload).

这篇关于GCM消息(或数据)限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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