java - Emoji Detection while filling apn Payload -


i trying send push notification payload ios, payload has limited size 256 byte when push notification message has emoji or different text can not detect actual message size result payload size excedd 256 byte, how can detect actual size of message using java ? thanks

as far know, emoji 4 bytes in size. (feel free correct me if i'm wrong)

so long can detect how many emoji there in message can account them each being 4 bytes in size.

as how detect how many emoji there are, depends on data receive parse.

technically unicode characters should able see , identify them in raw output, provided output can acknowledge unicode 6.0 characters.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -