0

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

Thanks guys!

benoffi7
  • 3,068
  • 3
  • 29
  • 44

1 Answers1

2

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?

Community
  • 1
  • 1
Garbit
  • 5,805
  • 6
  • 39
  • 72