Push

Parse. Push

new Push()

Contains functions to deal with Push in Parse.

Methods

(static) getPushStatus(pushStatusId, options) → {Parse.Object}

Gets push status by Id

Parameters:
Name Type Description
pushStatusId string

The Id of Push Status.

options object

Valid options are:

  • useMasterKey: In Cloud Code and Node only, causes the Master Key to be used for this request.
Returns:
Type:
Parse.Object

Status of Push.

(static) send(data, options) → {Promise}

Sends a push notification. Available in Cloud Code only.

See Push Notification Guide

Parameters:
Name Type Description
data object

The data of the push notification. Valid fields are:

  1. channels - An Array of channels to push to.
  2. push_time - A Date object for when to send the push.
  3. expiration_time - A Date object for when to expire the push.
  4. expiration_interval - The seconds from now to expire the push.
  5. where - A Parse.Query over Parse.Installation that is used to match a set of installations to push to.
  6. data - The data to send as part of the push.
options object

Valid options are:

  • useMasterKey: In Cloud Code and Node only, causes the Master Key to be used for this request.
Returns:
Type:
Promise

A promise that is fulfilled when the push request completes.