Push

Parse. Push

new Push()

Contains functions to deal with Push in Parse.

Methods

(static) send(data) → {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.
Returns:
Type:
Promise

A promise that is fulfilled when the push request completes.