Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions example/ios/example/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ - (void)networkDidReceiveMessage:(NSNotification *)notification {
NSDictionary * userInfo = [notification userInfo];
[[NSNotificationCenter defaultCenter] postNotificationName:J_CUSTOM_NOTIFICATION_EVENT object:userInfo];
}
// 如果是 AppDelegate.swift 使用如下代码
// @objc
// func networkDidReceiveMessage(_ notification: Notification) -> Void {
// print("networkDidReceiveMessage \(notification)")
// let userInfo = notification.userInfo
// NotificationCenter.default.post(name: .init("J_CUSTOM_NOTIFICATION_EVENT"), object: userInfo)
// }

//************************************************JPush end************************************************

Expand Down