src/Wrep/Notificato/Apns/MessageEnvelope.php
public function getBinaryMessage()
	{
		$jsonMessage = $this->getMessage()->getJson();
		$jsonMessageLength = strlen($jsonMessage);

		$binaryMessage = pack('CNNnH*', self::BINARY_COMMAND, $this->getIdentifier(), $this->getMessage()->getExpiresAt(), self::BINARY_DEVICETOKEN_SIZE, $this->getMessage()->getDeviceToken()) . pack('n', $jsonMessageLength);
		return $binaryMessage . $jsonMessage;
	}
public function getBinaryMessage()
	{
		$jsonMessage = $this->getMessage()->getJson();
		$jsonMessageLength = strlen($jsonMessage);

		$binaryMessage = pack('CNNnH*', self::BINARY_COMMAND, $this->getIdentifier(), $this->getMessage()->getExpiresAt(), self::BINARY_DEVICETOKEN_SIZE, $this->getMessage()->getDeviceToken()) . pack('n', $jsonMessageLength);
		return $binaryMessage . $jsonMessage;
	}
public function getBinaryMessage ( ) { $ jsonMessage = $ this -> getMessage ( ) -> getJson ( ) ; $ jsonMessageLength = strlen ( $ jsonMessage ) ; $ binaryMessage = pack ( 'CNNnH*' , self :: BINARY_COMMAND , $ this -> getIdentifier ( ) , $ this -> getMessage ( ) -> getExpiresAt ( ) , self :: BINARY_DEVICETOKEN_SIZE , $ this -> getMessage ( ) -> getDeviceToken ( ) ) . pack ( 'n' , $ jsonMessageLength ) ; return $ binaryMessage . $ jsonMessage ; }
Get the message that this envelope contains in binary APNS compatible format

@return string
Get the message that this envelope contains in binary APNS compatible format