mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
fix show app's badge
This commit is contained in:
parent
15ae79d561
commit
bf3d9129e0
1 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
if let message = message {
|
||||
let msgData = parseMessage(message: message)
|
||||
|
||||
if !message.isUsingUserDefaults, let badge = updateBadge() as NSNumber? {
|
||||
// Extension only upates app's badge when main shared core is Off = extension's core is On.
|
||||
// Otherwise, the app will update the badge.
|
||||
if lc?.globalState == GlobalState.On, let badge = updateBadge() as NSNumber? {
|
||||
bestAttemptContent.badge = badge
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue