Unable to receive Apple push notification on iphone through php service -
I'm sorry if this is a duplicate question, but I did not find the solution I was looking for. Here is the service code to send information to my PHP's iPhone: & lt ;? Php $ data = array (); // Place your device token here (without spaces): $ deviceToken = 'eb9ea0d12eb9a0bae159c7e54fa59baee22329df'; // Place the passphrase of your private key here: $ passphrase = 'dell'; $ Message = 'push notification service'; //////////////////////////////////////////////// ////////////////////////// $ ctx = stream_context_create (); Stream_context_set_option ($ ctx, 'ssl', 'local_cert', 'app / controller / ck.pem'); Stream_context_set_option ($ ctx, 'ssl', 'passphrase', $ passphrase); // Open the connection to the APNS server $ fp = stream_socket_client ('SSL: //gateway.sandbox.push.apple.com: 2195', $$ err, $ errstr, 60, STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT, $ ctx); If (! $ Fp) // exit ("Faile...