From b6b9f4162b432ed535311207f7aba7f74731e53d Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Mon, 24 Feb 2025 10:07:33 +0000 Subject: [PATCH] Add a couple of extra logs around the state of call ringing notifications. (#3808) --- NSE/Sources/NotificationServiceExtension.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NSE/Sources/NotificationServiceExtension.swift b/NSE/Sources/NotificationServiceExtension.swift index 3d55eb2fef..33a88bdbc7 100644 --- a/NSE/Sources/NotificationServiceExtension.swift +++ b/NSE/Sources/NotificationServiceExtension.swift @@ -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 } @@ -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