Skip to content

Commit

Permalink
Fix prod endpoint for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste-dulac committed Mar 15, 2018
1 parent 35c21c1 commit 9a0052b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sender/IOSSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class IOSSender implements SenderInterface

const SANDBOX_ENDPOINT = "ssl://gateway.sandbox.push.apple.com:2195";

//const ENDPOINT = "ssl://gateway.push.apple.com:2195";
const ENDPOINT = "ssl://gateway.push.apple.com:2195";

public function __construct(string $pem, string $passPhrase, bool $sandbox = false, $timeout = 60)
{
Expand Down Expand Up @@ -47,7 +47,7 @@ private function buildRequest(string $playload, string $device)
stream_context_set_option($ctx, 'ssl', 'local_cert', $this->pem);
stream_context_set_option($ctx, 'ssl', 'passphrase', $this->passPhrase);
$fp = stream_socket_client(
self::SANDBOX_ENDPOINT,
$this->sandbox ? self::SANDBOX_ENDPOINT : self::ENDPOINT,
$err,
$errstr,
$this->timeout,
Expand Down

0 comments on commit 9a0052b

Please sign in to comment.