質問

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