I'm running push notification form server to my iphone.
... ... // Encode the payload as JSON
$payload = json_encode($body);
// Build the binary notification
$msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
$result = fwrite($fp, $msg, strlen($msg));
when I echo $result. I shown "102". What does this mean?
if $result === false
, too. ;) – user1932079