के साथ ऐप्पल पुश अधिसूचना क्या PHP में एक पोस्टिंग पुश अधिसूचना प्रणाली को curl (stream_socket_client के बजाय) का उपयोग करके कार्यान्वित करने का कोई तरीका है?कर्ल
मैं ने लिखा है:
$url = 'https://gateway.sandbox.push.apple.com:2195';
$cert = 'AppCert.pem';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSLCERT, $cert);
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "passphrase");
$curl_scraped_page = curl_exec($ch);
लेकिन यह कैसे डिवाइस टोकन और json संदेश स्थापित करने के लिए?
क्यों नहीं लग रही है पर आसानी से उपलब्ध पुस्तकालयों> http://www.easyapns.com/ – BenM
@BenM क्योंकि मैं stream_socket_client समारोह का उपयोग नहीं करना चाहते हैं, क्योंकि यह एसएसएल प्रोटोकॉल – Pierre