com.hn.push.PushUtil Maven / Gradle / Ivy
package com.hn.push;
import com.hn.push.jpush.JpushService;
import com.hn.push.jpush.config.JpushConfig;
/**
* 推送工具类
*
* api:https://docs.jiguang.cn/jpush/server/push/server_overview/
* java sdk:https://github.com/jpush/jpush-api-java-client
*
* @author T Wang.
* 2019/08/15
*/
public class PushUtil {
/**
* 极光推送服务
*/
public static JpushService jpushService;
static {
try {
jpushService = new JpushService(JpushConfig.APP_KEY,JpushConfig.MASTER_SECRET,JpushConfig.IS_PRODUCE);
}catch (Exception e){
e.printStackTrace();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy