Add a couple of extra logs around the state of call ringing notifications. (#3808)

This commit is contained in:
Doug 2025-02-24 10:07:33 +00:00 committed by GitHub
parent 482d03a036
commit b6b9f4162b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,6 +298,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
// `CXProvider.reportNewIncomingCall` to show the system UI and handle actions on it. // `CXProvider.reportNewIncomingCall` to show the system UI and handle actions on it.
// N.B. this flow works properly only when background processing capabilities are enabled // N.B. this flow works properly only when background processing capabilities are enabled
guard notifyType == .ring else { guard notifyType == .ring else {
MXLog.info("Non-ringing call notification, handling as push notification")
return .shouldDisplay return .shouldDisplay
} }
@ -312,6 +313,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
do { do {
try await CXProvider.reportNewIncomingVoIPPushPayload(payload) try await CXProvider.reportNewIncomingVoIPPushPayload(payload)
MXLog.info("Call notification delegated to CallKit")
} catch { } catch {
MXLog.error("Failed reporting voip call with error: \(error). Handling as push notification") MXLog.error("Failed reporting voip call with error: \(error). Handling as push notification")
return .shouldDisplay return .shouldDisplay