import {CloudCodePushContainer} from 'skygear-build/packages/skygear-core/lib/cloud/push.js'
CloudCodePushContainer
Extends:
Inherited Summary
From class PushContainer | ||
public get |
deviceID: String: * The device ID |
|
public |
async registerDevice(token: string, type: string, topic: string): * You can register your device for receiving push notifications. |
|
public |
async sendToDevice(devices: string | string[], notification: Object, topic: string): Object[] Send a push notification to specified devices. |
|
public |
async sendToUser(users: string | string[], notification: Object, topic: string): Object[] Send a push notification to all devices associated with the specified users. |
|
public |
async unregisterDevice(): * Unregisters the current user from the current device. |