tags:

views:

65

answers:

0

Hi

I tried sending the test message

$apnsHost = 'gateway.sandbox.push.apple.com';

$apnsMessage = chr(0).chr(0).chr(32)
  .pack('H*', str_replace(' ', '', $deviceToken))
  .chr(0).chr(strlen($payload)) . $payload;
fwrite($apns, $apnsMessage);

I got the message

Connection Establishedsending message :�� d^÷Îå0ZCd%1ÄuwOOYš'ÊÈ}ârðm¾Í�6{"aps":{"\u2019alert\u2019":"test message","badge":1}}

but no luck from device side(no notification) any idea?