new Push()
Contains functions to deal with Push in Parse.
Methods
(static) send(data, options) → {Promise}
Sends a push notification.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object
|
The data of the push notification. Valid fields are:
|
options |
Object
|
An object that has an optional success function, that takes no arguments and will be called on a successful push, and an error function that takes a Parse.Error and will be called if the push failed. |
Returns:
- Type:
-
Promise
A promise that is fulfilled when the push request completes.