From bde8688e3a71e8f9a5352e51fa363474e4c0f18f Mon Sep 17 00:00:00 2001 From: Charles Dyason Date: Wed, 3 Sep 2025 00:50:32 +0200 Subject: [PATCH 1/2] feat: parse caller Id (client/number) in performStartCallAction --- ios/Classes/SwiftTwilioVoicePlugin.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ios/Classes/SwiftTwilioVoicePlugin.swift b/ios/Classes/SwiftTwilioVoicePlugin.swift index 0cb52c44..6e268c76 100644 --- a/ios/Classes/SwiftTwilioVoicePlugin.swift +++ b/ios/Classes/SwiftTwilioVoicePlugin.swift @@ -930,10 +930,18 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand } self.sendPhoneCallEvents(description: "LOG|StartCallAction transaction request successful", isError: false) + + var callerName: String? + if(handle.contains("client:")) { + let clientName = handle.replacingOccurrences(of: "client:", with: "") + callerName = self.clients[clientName] + } else { + callerName = handle; + } let callUpdate = CXCallUpdate() callUpdate.remoteHandle = callHandle - callUpdate.localizedCallerName = self.clients[handle] ?? self.clients["defaultCaller"] ?? self.defaultCaller + callUpdate.localizedCallerName = callerName ?? self.clients["defaultCaller"] ?? self.defaultCaller callUpdate.supportsDTMF = false callUpdate.supportsHolding = true callUpdate.supportsGrouping = false From e8ffdee456dc67e09e98382ccdbf6de2ca1be846 Mon Sep 17 00:00:00 2001 From: Charles Dyason Date: Wed, 3 Sep 2025 00:51:56 +0200 Subject: [PATCH 2/2] docs: update CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 644966a1..0f7fa9fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## Next release + +* Fix: [iOS] show caller number or interpretted client name for performStartCallAction +* Docs: update CHANGELOG + ## 0.3.2+1 * Fix: [iOS] Missed call notifications now show caller name (or full number) on title, and "Missed call" text in body. [Issue #299](https://github.com/cybex-dev/twilio_voice/issues/299)