GCM Android Registration ID max. length

Does Google Cloud Messaging have a maximum registration id length?

+48
android google-cloud-messaging
Jul 04 '12 at 7:50
source share
4 answers

A Google engineer said the registration identifier can be up to 4K . Users tagged 255 characters.

+55
Dec 04
source share
β€” -

I think I can help you with this ... I have been working with GCM this week, and my device registration ID is as follows:

APA91bHPRgkF3JUikC4ENAHEeMrd41Zxv3hVZjC9KtT8OvPVGJ-hQMRKRrZuJAEcl7B338qju59zJMjw2DELjzEvxwYv7hH5Ynpc1ODQ0aT4U4OFEeco8ohsN5PjL1iC2dNtk2BAokeMCg2ZXKqpc8FXKmhX94kIxQ

163 characters!

Hope this helps you ...

+11
Jul 16 '12 at 8:45
source share

In iOS, all my registration tokens look like this:

lhBV25_Znsk:APA91bHFM9nbX-s0py6-ktzgdpP_y85RahdL3OJ4LG4v-jT_9QY8ZbZH8uK-JNO_BDy75b6RfDT-v-j5W0FXIFTif72ckT3kqLNBDNWYSd5AhxYwdJi3Wqfdqqi-wL8F_k1nm2qUS3Ra 

(152 characters)

Note the colon after 11 characters. Also note that it has the sequence β€œAPA ...” AFTER the colon, however you must use the entire registration token.

+4
Jul 30 '15 at 20:07
source share

There is no official restriction on the GCM identifier, the payload size is 4k when I write this. Although, it’s safe to count 255 for the GCM ID according to this and the discussion is in front of me.

If you ask a question in the database, I suggest you use TEXT.

+1
Jan 20 '16 at 8:00
source share



All Articles