What is the maximum length of an FCM registration ID token?

后端 未结 3 1756
南笙
南笙 2020-11-30 05:40

Working with the \"new\" Firebase Cloud Messaging, I would like to reliably save client device registration_id tokens to the local server database so that the s

3条回答
  •  孤城傲影
    2020-11-30 06:23

    I am now using Firebase Cloud Messaging instead of GCM.

    The length of the registration_id I've got is 152.

    I've also got ":" at the very beginning each time like what jamesc mentioned (e.g. bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1).

    I make the token as varchar(255) which is working for me.

    However, the length of registration_id has no relationship with size of 4k. You are allowed to send whatever size of the data through network. Usually, cookies are limited to 4096 bytes, which consist of name, value, expiry date etc.

提交回复
热议问题