0.0.1 • Published 6 months ago
push-notification-server v0.0.1
Push Notification Server for IOS & Andoid Mobile
Example
import { push } from 'push-notification-server'
const settings = {
gcm: {
id: 'xxx',
phonegap: false,
},
isAlwaysUseFCM: false,
};
const regId = 'device reg id'
const data = {}
const params= {
settings, regId, data
}
/**
* 1: ios
* 2: android
* 3: huawei
* */
push(params, 2)