ParsePush

Class ParsePush - Handles sending push notifications with Parse.

author

Fosco Marotto fjm@fb.com

package

Parse

Methods

Returns the PushStatus for a response from ParsePush::send

getStatus(array $response) : null|\Parse\ParsePushStatus
static

Arguments

$response

array

Response from ParsePush::send

Response

null|\Parse\ParsePushStatus

Returns whether or not the given response has a push status Checks to see if X-Push-Status-Id is present in $response

hasStatus(array $response) : boolean
static

Arguments

$response

array

Response from ParsePush::send

Response

boolean

Sends a push notification.

send(array $data, boolean $useMasterKey = false) : mixed
static
Throws
\Exception,

ParseException

Arguments

$data

array

The data of the push notification. Valid fields are: channels - An Array of channels to push to. push_time - A Date object for when to send the push. expiration_time - A Date object for when to expire the push. expiration_interval - The seconds from now to expire the push. where - A ParseQuery over ParseInstallation that is used to match a set of installations to push to. data - The data to send as part of the push

$useMasterKey

boolean

Whether to use the Master Key for the request

Response

mixed