2012年11月6日 星期二

[Android]GCM 推播字數限制

GCM 推播字數限制,網路上找一下,大部份網友都知道有限制,但是都沒有說限制是多少。
自己努力爬文,發現官網的錯誤訊息中有一段寫到。
官網資料:
Message Too BigThe total size of the payload data that is included in a message can't exceed 4096 bytes. Note that this includes both the size of the keys as well as the values.
 Happens when error code is MessageTooBig.


因此可以推斷,推播字數限制是被整個JSON所限制,不得超過4KB。
官方網站不寫清楚,有可能是因為Googel還不想定下來。
以上如果有錯,請留言,謝謝。
keyword : Google Cloud Messaging for Android, GCM, 推播
本文link : http://taiwanv.blogspot.com/2012/11/androidgcm.html


相關link:
●官方網站GCM部份( GCM Architectural Overview | Android Developers )
http://developer.android.com/guide/google/gcm/gcm.html

沒有留言:

張貼留言

●基於網路的公開分享原則,開放所有人留言批評,但因本人不是公務人員,沒有領18%,也不是專業的格主,所以不一定會回覆。
●下列情況一律刪除:廣告、言之無物純搶頭香、批評私人。