Commit 23dc241a by lanpingxiong

新增华为推送

parent 2f78cc26
...@@ -98,6 +98,7 @@ public class PushTask { ...@@ -98,6 +98,7 @@ public class PushTask {
android(pushModel, imClientReceiver, imApplication); android(pushModel, imClientReceiver, imApplication);
} }
} }
/** /**
* 异步系统推送 * 异步系统推送
* *
...@@ -236,6 +237,7 @@ public class PushTask { ...@@ -236,6 +237,7 @@ public class PushTask {
conn.setRequestMethod("POST"); conn.setRequestMethod("POST");
//不设置默认发送文本格式。设置就是json //不设置默认发送文本格式。设置就是json
conn.setRequestProperty("Content-Type", "application/json"); conn.setRequestProperty("Content-Type", "application/json");
log.info("imApplication FirebaseSecret ={}", imApplication.getFirebaseSecret());
conn.setRequestProperty("Authorization", "key=" + imApplication.getFirebaseSecret()); conn.setRequestProperty("Authorization", "key=" + imApplication.getFirebaseSecret());
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
//推送到哪台客户端机器 设备token //推送到哪台客户端机器 设备token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment