AppleVoip extends Apple
Table of Contents
Constants
- DEFAULT_EXPIRY = 14400
Methods
- getBatch() : string
- Gets the batch for Apple push notification service
- getMessageInstance() : AppleVoipMessage
- Returns message instance
- getProductionBatch() : string
- Gets batch with ;2; modifier only for production server
- getSandboxBatch() : string
- Gets batch with ;1; modifier only for sandbox server
- shouldBeSent() : bool
Constants
DEFAULT_EXPIRY
public
mixed
DEFAULT_EXPIRY
= 14400
Methods
getBatch()
Gets the batch for Apple push notification service
public
getBatch([array<string|int, mixed> $messages = [] ]) : string
Parameters
- $messages : array<string|int, mixed> = []
Return values
stringgetMessageInstance()
Returns message instance
public
getMessageInstance(string $token) : AppleVoipMessage
Parameters
- $token : string
Return values
AppleVoipMessagegetProductionBatch()
Gets batch with ;2; modifier only for production server
public
getProductionBatch(mixed $appMessages) : string
Parameters
- $appMessages : mixed
Return values
stringgetSandboxBatch()
Gets batch with ;1; modifier only for sandbox server
public
getSandboxBatch(mixed $appMessages) : string
Parameters
- $appMessages : mixed
Return values
stringshouldBeSent()
public
static shouldBeSent(mixed $messageRowData) : bool
Parameters
- $messageRowData : mixed