I am writing php code to send push notifications to multiple iphone devices.. While i am executing php code i am getting warning message in the below line
$apnsMessage = chr(0) . chr(0) . chr(32) . pack('H*', str_replace(' ', '', $deviceToken)) . chr(0) . chr(strlen($payload)) . $payload;
like
Warning: pack() [function.pack]: Type H: illegal hex digit in /myapp.com/pushgrams/pushtest.php on line 39
Can any one tell me how to solve this issue?