23 lines
536 B
JavaScript
23 lines
536 B
JavaScript
// Push Adapter
|
|
//
|
|
// Allows you to change the push notification mechanism.
|
|
//
|
|
// Adapter classes must implement the following functions:
|
|
// * getValidPushTypes()
|
|
// * send(devices, installations, pushStatus)
|
|
//
|
|
// Default is ParsePushAdapter, which uses GCM for
|
|
// android push and APNS for ios push.
|
|
|
|
export class PushAdapter {
|
|
send(devices, installations, pushStatus) { }
|
|
|
|
/**
|
|
* Get an array of valid push types.
|
|
* @returns {Array} An array of valid push types
|
|
*/
|
|
getValidPushTypes() {}
|
|
}
|
|
|
|
export default PushAdapter;
|