forked from mirrors/linphone-iphone
fix notification 'Missed call'
This commit is contained in:
parent
21fbc51405
commit
bbd4ad16c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue