I haven't been able to find any documentation on the size and characteristics of the GCM Registration id. What is the max size? Can it be unicode? I want to store this into a Microsoft Sql Server database and I need the specs on the field.

I have seen answers on other forums/threads but they are all different

Thanks,

Gary

有帮助吗?

解决方案

The length of the registration ID is not constant. According to what I've read, its limit is 4096 bytes. However, in practice, all the registration IDs I've seen were much shorter (around 100-200 bytes).

The characters I've seen used in the registration ID are a to z, A to Z, 0 to 9, - and _. You can store it in any string/character/varchar column.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top