Hi everyone, I ran into a problem when sending guns using ApnsPHP.
after translating the site to utf-8 encoding, the pushes stopped reaching. It was useful to understand, it turned out that when I tried to send in Latin letters, for example, test , the notification reached as many as 3 times, but the answer was "Writes: Internal error (127 by written in 105 bytes)"
those. writes an error, but sends 3 times.
when trying to send a test to Russians, writes the same error, but does not reach
I looked in the internet for writing about this - that the problem is
$ nLen = strlen ($ aMessage ['BINARY_NOTIFICATION']);
in the file Push.php
replaced by
$ nLen = mb_strlen ($ aMessage ['BINARY_NOTIFICATION'], 'latin1');
Latin is now sent without errors and reaches once. Russian does not reach.
I put:
$ nLen = mb_strlen ($ aMessage ['BINARY_NOTIFICATION'], 'utf-8');
does not help, do not reach. what to do?