极光推送java服务端-通知(2)
1.下载SDK REST API为极光推送开发API 2.下载好后,maven导入后可以参考示例 官方demo 4.小demo // 设置好账号的app_key和masterSecret是必须的 private static String APP_KEY = "你的app_key"; private static String MASTER_SECRET = "你的master_secret"; //极光推送>>Android //Map<String, String> parm是我自己传过来的参数,同学们可以自定义参数 public static void jpushAndroid(Map<String, String> parm) { Map<String, String> extras = new HashMap<String, String>(); // extras.put("test", "https://community.jiguang.cn/push"); extras.put("type", "2");//变色龙云必须设置type=2 extras.put("url", "http://localhost:8080/index"); //创建JPushClient JPushClient jpushClient = new JPushClient(MASTER