mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
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