All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.push.PushUtil Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
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