diff --git a/Classes/CallManager.swift b/Classes/CallManager.swift index d1f1b4fae..315429dec 100644 --- a/Classes/CallManager.swift +++ b/Classes/CallManager.swift @@ -497,7 +497,7 @@ class CoreManagerDelegate: CoreDelegate { CallManager.instance().bluetoothEnabled = false } - if callLog == nil || callLog?.status == .Missed || callLog?.status == .Aborted || callLog?.status == .EarlyAborted { + if UIApplication.shared.applicationState != .active && (callLog == nil || callLog?.status == .Missed || callLog?.status == .Aborted || callLog?.status == .EarlyAborted) { // Configure the notification's payload. let content = UNMutableNotificationContent() content.title = NSString.localizedUserNotificationString(forKey: NSLocalizedString("Missed call", comment: ""), arguments: nil)