I have implemented successfully this code:
Does anyone know how to write an Apple Push Notification Provider in C#?
It works great. But I have a question, can anybody help me how to send non english messages like Hebrew Or Arabic?
If the string contains any non english characters, it is not sent.
Thank you
I found the solution.
The length was wrong. In the code we pass the length of the string before the counting. We should count it after the UTF encoding: