mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
修复加密推送角标
This commit is contained in:
parent
05d6ada326
commit
4a2bf08e6e
@ -41,8 +41,8 @@ class CiphertextProcessor: NotificationContentProcessor {
|
||||
soundName = sound
|
||||
bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: sound))
|
||||
}
|
||||
if let badge = map["badge"] as? Int {
|
||||
bestAttemptContent.badge = badge as NSNumber
|
||||
if let badge = map["badge"] as? String, let badgeValue = Int(badge) {
|
||||
bestAttemptContent.badge = badgeValue as NSNumber
|
||||
}
|
||||
var aps: [String: Any] = ["alert": alert]
|
||||
if let soundName {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user