Skip to content

Commit 2d69409

Browse files
committed
Finally fixed issue #277 with a caveat, the App must be deleted first
1 parent a445118 commit 2d69409

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ GoogleService-Info.plist
9898
.env
9999
.env.*
100100

101+
.agents
102+
.codex
103+
AGENTS.md

‎MacMagazine/MacMagazine/MainApp/AppDelegate.swift‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ extension AppDelegate {
6969
func application(_ application: UIApplication,
7070
didReceiveRemoteNotification userInfo: [AnyHashable: Any],
7171
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
72+
if userInfo["ck"] != nil {
73+
completionHandler(.newData)
74+
return
75+
}
76+
7277
guard let aps = userInfo["aps"] as? [String: Any],
7378
let contentAvailable = aps["content-available"] as? Int,
7479
contentAvailable == 1 else {

0 commit comments

Comments
 (0)