Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OffcnIMSDKiOS
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
opensource
OffcnIMSDKiOS
Commits
3e59e066
Commit
3e59e066
authored
Sep 11, 2020
by
zhangyunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送
parent
bdb38571
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
AppDelegate+OffcnIMPush.m
...MSDKiOS/ExposedInterface-(外放接口)/AppDelegate+OffcnIMPush.m
+17
-2
No files found.
OffcnIMSDKiOS/ExposedInterface-(外放接口)/AppDelegate+OffcnIMPush.m
View file @
3e59e066
//
//
...
...
@@ -53,6 +53,21 @@
}
+
(
void
)
didReceiveRemoteNotification
:(
NSDictionary
*
)
userInfo
{
// {
// aps = {
// alert = {
// "action-loc-key" = "";
// body = "\U60a8\U6709\U4e00\U6761\U65b0\U7684\U6d88\U606f";
// "launch-image" = "";
// "loc-args" = "<null>";
// "loc-key" = "";
// title = "\U6d88\U606f\U901a\U77e5";
// "title-loc-args" = "<null>";
// "title-loc-key" = "";
// };
// };
// message = "{\"type\":1,\"body\":{\"session_id\":\"6e0f33004cb612a72341048b1eddbd3735e92dc4\",\"msg_id\":\"18fe84c6-25ea-41c7-9a70-1fe3e5c0b9ce\",\"version\":1,\"send_time\":\"2020-09-11 16:13:49\",\"msg_seq\":1599812029575,\"msg_from\":\"78f40cb49e0f54dd654de836c58f5202\",\"msg_to\":\"ce0819db8391f1e7258a71cc9e2c3235\",\"msg_scope\":1,\"msg_type\":1,\"msg\":{\"msg\":\"\U968f\U673a\U6570:9265\"}}}";
// }
OffcnIMPushModel
*
IMModel
=
[
OffcnIMPushModel
mj_ZYJobjectWithKeyValues
:
userInfo
];
...
...
@@ -74,7 +89,7 @@
UILocalNotification
*
backgroudMsg
=
[[
UILocalNotification
alloc
]
init
];
if
(
backgroudMsg
)
{
backgroudMsg
.
timeZone
=
[
NSTimeZone
defaultTimeZone
];
backgroudMsg
.
alertBody
=
@"您
收到一条新
消息"
;
backgroudMsg
.
alertBody
=
@"您
有一条新的
消息"
;
backgroudMsg
.
applicationIconBadgeNumber
=
1
;
backgroudMsg
.
alertAction
=
@"查看"
;
NSDictionary
*
infoDic
=
[
NSDictionary
dictionaryWithObject
:
@"name"
forKey
:
@"key"
];
...
...
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