benoffi7
benoffi7

Reputation: 3106

How is the max length of a message with GCM?

I am sending notifications over GCM in PHP and I dont know the max length of the message that I can send

Thanks guys!

Upvotes: 0

Views: 471

Answers (1)

Garbit
Garbit

Reputation: 6056

In UTF-8, characters need between 1 and 4 bytes. So, you can store between 1024 and 4096 UTF-8 characters in 4KB.

See here How many characters can be stored in 4KB?

Upvotes: 2

Related Questions