Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
23dc241a
Commit
23dc241a
authored
Sep 08, 2022
by
lanpingxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增华为推送
parent
2f78cc26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
common/src/main/java/com/wecloud/im/ws/sender/PushTask.java
+2
-0
No files found.
common/src/main/java/com/wecloud/im/ws/sender/PushTask.java
View file @
23dc241a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment