We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa72c4 commit 0e05129Copy full SHA for 0e05129
NotificationServiceExtension/NotificationService.swift
@@ -337,9 +337,11 @@ class NotificationService: UNNotificationServiceExtension {
337
var badgeValue = (Int(SecureStore.get(StoreKey.notificationsService.customBadgeNumber) ?? "0") ?? 0)
338
if !shouldIgnoreNotification {
339
badgeValue += 1
340
- bestAttemptContent.userInfo[AdamantNotificationUserInfoKeys.decodedMessage] = decodedMessage
+ } else {
341
+ bestAttemptContent.body = ""
342
}
343
344
+ bestAttemptContent.userInfo[AdamantNotificationUserInfoKeys.decodedMessage] = decodedMessage
345
bestAttemptContent.badge = NSNumber(value: badgeValue)
346
SecureStore.set(String(badgeValue), for: StoreKey.notificationsService.customBadgeNumber)
347
0 commit comments