用于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. Android MessageQueue最大尺寸
- 2. Android光标最大尺寸
- 3. 最大尺寸
- 4. javascript最大尺寸
- 5. ColorBox最大尺寸
- 6. NSUserDefault最大尺寸
- 7. BlockingCollection最大尺寸
- 8. ICO最大尺寸
- 9. NSUbiquitousKeyValueStore最大尺寸
- 10. QGLWidget最大尺寸
- 11. Android应用程序的最大尺寸?
- 12. Android Scale图像到最大尺寸
- 13. 最大尺寸/ Oracle Spatial的
- 14. HashSet的最大尺寸
- 15. UILabel的最大尺寸?
- 16. StringBuffer的最大尺寸
- 17. SWT复合最大尺寸
- 18. 升压池最大尺寸
- 19. MX画布最大尺寸
- 20. 的malloc的最大尺寸()
- 21. GridBagLayout最大单元尺寸
- 22. 设置QBoxLayout最大尺寸?
- 23. QVector有最大尺寸吗?
- 24. Unistd阅读()最大尺寸
- 25. async_read()的最大尺寸
- 26. 最大尺寸在PowerShell中
- 27. JSplitPane底部最大尺寸
- 28. img最大化尺寸
- 29. tkinter最大画布尺寸?
- 30. RichTextBox最大尺寸限制?
不幸的是这个问题没有答案.. – garima 2011-01-28 04:15:48