adobkin / libcapn

A simple C Library for interact with the Apple Push Notification Service (APNs)
MIT License
100 stars 37 forks source link

Change JSON encoding flag from JSON_ENSURE_ASCII to JSON_COMPACT. #6

Closed pprkut closed 9 years ago

pprkut commented 9 years ago

JSON_COMPACT results in a, as the name suggests, more compact JSON representation allowing to send more characters as part of a push notification. Further, not using JSON_ENSURE_ASCII is necessary for languages that do not use the latin alphabet (Arabic, CJK, etc), otherwise the character limit for notifications is ridiculously short.

adobkin commented 9 years ago

Tnx!