在没有 CallKit 的情况下在最近通话中显示去电 UI

Displaying outgoing calls in Recents without CallKit UI

是否可以在使用应用程序的呼叫时在“最近”中显示来自 VoIP 应用程序的拨出电话UI?

我调用提供商的 reportOutgoingCallWithUUID:startedConnectingAtDate:reportOutgoingCallWithUUID:connectedAtDate:reportCallWithUUID:endedAtDate:reason:reportCallWithUUID:updated:(设置名称)。我在控制台中看到类似

的事件

Provider was notified that outgoing call with UUID started connecting at date (null)
Provider was asked to report that call with UUID updated with update .
Provider was notified that outgoing call with UUID connected at date (null)
Provider was asked to report that call with UUID ended at date (null) with reason 2
Provider was notified that call with UUID ended at date (null) with private reason 2

但最近不受影响。

我的错误是认为向提供商报告事件应该足以让呼叫出现在“最近”中。结果发现无论如何我都需要用 CXStartCallAction 请求交易。 UI 没有问题(我对文档说 "For incoming and outgoing calls, CallKit displays the same interfaces as the Phone app" 感到困惑,但事实并非如此)。

在相反的问题和来电方面找到了 ,但很有帮助。