MessageEnvelope
class MessageEnvelope
Constants
STATUS_NOTSEND |
Statuscode: Message not (yet) send to APNS
|
STATUS_NOERRORS |
Statuscode: Message send, no errors encountered so far
|
STATUS_SENDFAILED |
Statuscode: Sending message failed, will retry with other envelope
|
STATUS_EARLIERERROR |
Statuscode: Failed to send message due earlier error, will retry with other envelope
|
BINARY_COMMAND |
Binary command to send a message to the APNS gateway (Internal use)
|
BINARY_DEVICETOKEN_SIZE |
Binary size of a device token (Internal use)
|
Methods
Unique number to the relevant APNS connection to identify this message
The message that's is contained by this envelope
Get the envelope used for the retry
Set the status of this message envelope only possible if there is no final state set yet.
Get the current status of this message envelope
Get a description of the current status of this message envelope
Get the final status after all retries.
Get a description of the final status after all retries.
Get the message that this envelope contains in binary APNS compatible format
Details
at line 71
__construct(int $identifier, Message $message)
Construct MessageEnvelope
at line 95
int
getIdentifier()
Unique number to the relevant APNS connection to identify this message
at line 105
Message
getMessage()
The message that's is contained by this envelope
at line 115
MessageEnvelope
getRetryEnvelope()
Get the envelope used for the retry
at line 127
setStatus(int $status, MessageEnvelope|null $envelope = null)
Set the status of this message envelope only possible if there is no final state set yet.
at line 154
int
getStatus()
Get the current status of this message envelope
at line 164
string
getStatusDescription()
Get a description of the current status of this message envelope
at line 175
int
getFinalStatus()
Get the final status after all retries.
Use this method to know how the message ended up after all retries.
at line 191
string
getFinalStatusDescription()
Get a description of the final status after all retries.
Use this method to know how the message ended up after all retries.
at line 201
string
getBinaryMessage()
Get the message that this envelope contains in binary APNS compatible format