The regID could grow up to 4k,
f
--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/rtSPjqRG0MQJ.
For more options, visit https://groups.google.com/groups/opt_out.
The regID could grow up to 4k,
f
On Jul 23, 2012 11:59 PM, "Tomer Peled" <tomer...@gmail.com> wrote:
Hi,I've searched the documentation and the web for an answer for the question : "What is the size of the registration id?" but with no success.I've found places which says it should be considered as the size of a cookie which is 4096 bytes, but some other places just use 163 bytes.Notice that from tests which I've made it indeed use 163 bytes on regular base.How should I store this key in my db? what size should I limit it?Thanks,Tomer--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm+unsubscribe@googlegroups.com.
255 is perferct with varchar. 4k is for the payload, not the reg id.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/bcb48c10-02ac-4746-9613-6237e4a57c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Payload is only X and Y is max 1000 by connexion with Google server. When you make a connexion you send each payload with a single reg id individualy with while for or foreach with max1000. If you have more device/client. Just redo the operation with the next batch of 1000.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/46f19f0b-03dd-4c00-a0e7-6db07ff4494e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/CA%2BocFeOmhLydEiyDMLAqEM6cetaKLvStcRZC0qxoSGGgMKMTEA%40mail.gmail.com.
4k is the limit fir the hole payload, if the regid grow 4k, the message would be 0k. 255 varchar is enough for mysql database to store the reg id.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/053038e8-bf82-4583-b91d-cb9854220249%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.