mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-01 01:46:23 +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
|
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.
|
// Configure the notification's payload.
|
||||||
let content = UNMutableNotificationContent()
|
let content = UNMutableNotificationContent()
|
||||||
content.title = NSString.localizedUserNotificationString(forKey: NSLocalizedString("Missed call", comment: ""), arguments: nil)
|
content.title = NSString.localizedUserNotificationString(forKey: NSLocalizedString("Missed call", comment: ""), arguments: nil)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue