mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Add a couple of extra logs around the state of call ringing notifications. (#3808)
This commit is contained in:
parent
482d03a036
commit
b6b9f4162b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user