Skip to content

Commit

Permalink
TLS communication with APNS
Browse files Browse the repository at this point in the history
  • Loading branch information
integer committed Nov 25, 2014
1 parent 6d2660f commit 8ac6e21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ApnsPHP/Feedback.php
Expand Up @@ -42,8 +42,8 @@ class ApnsPHP_Feedback extends ApnsPHP_Abstract
const TOKEN_LENGTH_BINARY_SIZE = 2; /**< @type integer Token length binary size in bytes. */

protected $_aServiceURLs = array(
'ssl://feedback.push.apple.com:2196', // Production environment
'ssl://feedback.sandbox.push.apple.com:2196' // Sandbox environment
'tls://feedback.push.apple.com:2196', // Production environment
'tls://feedback.sandbox.push.apple.com:2196' // Sandbox environment
); /**< @type array Feedback URLs environments. */

protected $_aFeedback; /**< @type array Feedback container. */
Expand Down Expand Up @@ -114,4 +114,4 @@ protected function _parseBinaryTuple($sBinaryTuple)
{
return unpack('Ntimestamp/ntokenLength/H*deviceToken', $sBinaryTuple);
}
}
}
6 changes: 3 additions & 3 deletions ApnsPHP/Push.php
Expand Up @@ -55,8 +55,8 @@ class ApnsPHP_Push extends ApnsPHP_Abstract
protected $_nSendRetryTimes = 3; /**< @type integer Send retry times. */

protected $_aServiceURLs = array(
'ssl://gateway.push.apple.com:2195', // Production environment
'ssl://gateway.sandbox.push.apple.com:2195' // Sandbox environment
'tls://gateway.push.apple.com:2195', // Production environment
'tls://gateway.sandbox.push.apple.com:2195' // Sandbox environment
); /**< @type array Service URLs environments. */

protected $_aMessageQueue = array(); /**< @type array Message queue. */
Expand Down Expand Up @@ -385,4 +385,4 @@ protected function _removeMessageFromQueue($nMessageID, $bError = false)
}
unset($this->_aMessageQueue[$nMessageID]);
}
}
}

0 comments on commit 8ac6e21

Please sign in to comment.