Use the proper logic on iOS to increment the badge (#4233)
This commit is contained in:
parent
c58aedf050
commit
480a40862f
7 changed files with 34 additions and 15 deletions
|
@ -10,7 +10,8 @@ let DEFAULTS: [String:Any] = [
|
|||
"playSoundQuote": false,
|
||||
"playSoundReply": false,
|
||||
"playSoundRepost": false,
|
||||
"mutedThreads": [:] as! [String:[String]]
|
||||
"mutedThreads": [:] as! [String:[String]],
|
||||
"badgeCount": 0,
|
||||
]
|
||||
|
||||
/*
|
||||
|
@ -112,5 +113,9 @@ public class ExpoBackgroundNotificationHandlerModule: Module {
|
|||
userDefaults?.setValue(curr, forKey: forKey)
|
||||
}
|
||||
}
|
||||
|
||||
AsyncFunction("setBadgeCountAsync") { (count: Int) in
|
||||
userDefaults?.setValue(count, forKey: "badgeCount")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue