用于Android C2DM服务的registration_id字段的最大可能尺寸是多少?Android C2DM Registration_ID最大尺寸
11
A
回答
0
As per the footnote at the bottom of this link.它最多应该是1024个字节。如果您使用的是Java,这也不应该担心。
private void handleRegistration(Context context, Intent intent)
{
String registration = intent.getStringExtra("registration_id");
.... }
[编辑]
像特雷弗说,最大的尺寸应该是一个cookie的大小。 (4096字节)
2
根据This thread结果变化(给出98和120),但海报建议在数据库中放置255,这就是我要做的。
9
registration_id
的最大尺寸受Cookie大小的限制,即4K(4096字节)。
实际上,代币将比这个小得多,但是你不应该依赖这种行为。
(该registration_id
不被认为是有效载荷的一部分,所以提到过的脚注雷诺在这里并不适用。)
来源:在谷歌我在Android团队。 :)
(我很快就会更新文档,使这个更清晰,因为最近有几个人问。)
+0
你好,如果你有时间,请在这里检查我的问题关于registrationId模式:http://stackoverflow.com/questions/12403628/is-there-a-gcm-registrationid-pattern – 2012-09-13 09:51:35
相关问题
- 1. C2DM不能有registration_id
- 2. Android MessageQueue最大尺寸
- 3. javascript最大尺寸
- 4. ColorBox最大尺寸
- 5. BlockingCollection最大尺寸
- 6. 收藏最大尺寸
- 7. 最大尺寸/ Oracle Spatial的
- 8. MX画布最大尺寸
- 9. iphone照片最大尺寸
- 10. HashSet的最大尺寸
- 11. JSplitPane底部最大尺寸
- 12. 设置QBoxLayout最大尺寸?
- 13. StringBuffer的最大尺寸
- 14. tkinter最大画布尺寸?
- 15. SWT复合最大尺寸
- 16. Unistd阅读()最大尺寸
- 17. Highcharts Bubblechart最小/最大气泡尺寸
- 18. JFrame最大化屏幕尺寸与尺寸
- 19. 如何在Android中为ImageView设置最小和最大尺寸
- 20. Android ViewPager尺寸
- 21. Android Widget尺寸
- 22. C++指针阵列的最大尺寸
- 23. 最大尺寸.cab Visual Studio 2012 - InstallShield
- 24. 查找最大的页表尺寸
- 25. Unicode字符串的最大尺寸
- 26. 设置JFrame的最大尺寸
- 27. 浏览器中location.hash的最大尺寸
- 28. ICMP IPv6包的最大尺寸
- 29. .NET阵列的最大尺寸
- 30. 洞察V8最大堆栈帧/尺寸
不幸的是这个问题没有答案.. – garima 2011-01-28 04:15:48