Skip to content

Commit

Permalink
Add a couple of extra logs around the state of call ringing notificat…
Browse files Browse the repository at this point in the history
…ions. (#3808)
  • Loading branch information
pixlwave authored Feb 24, 2025
1 parent 482d03a commit b6b9f41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NSE/Sources/NotificationServiceExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
// `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
guard notifyType == .ring else {
MXLog.info("Non-ringing call notification, handling as push notification")
return .shouldDisplay
}

Expand All @@ -312,6 +313,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {

do {
try await CXProvider.reportNewIncomingVoIPPushPayload(payload)
MXLog.info("Call notification delegated to CallKit")
} catch {
MXLog.error("Failed reporting voip call with error: \(error). Handling as push notification")
return .shouldDisplay
Expand Down

0 comments on commit b6b9f41

Please sign in to comment.