INNER CODE UNIT · JavaScript
JPush
jpush/jpush-react-native · index.js:20
export default class JPush {
/*
* 设置调试模式,默认关闭状态
*
* 该接口需在 init 接口之前调用,避免出现部分日志没打印的情况
* @param enable = boolean
* */
static setLoggerEnable(enable) {
JPushModule.setDebugMode(enable)
}
/*
* 初始化推送服务
* {"appKey":"","channel":"dev","production":1}
* 请在componentDidMount()调用init,否则会影响通知点击事件的回调
* */
static init(params) {