如何使用 CallKit 添加带有 CXCallUpdate 的 customInfo?

How to add customInfo with CXCallUpdate using CallKit?

我想使用 CallKit 在最近记录中显示姓名和 Phone 号码。 我可以使用下面的代码显示 phone 号码或名称,

CXCallUpdate *callUpdate = [[CXCallUpdate alloc] init];
callUpdate.localizedCallerName = @"Name or Number";

Skype 同时显示名称和社交资料标签。 如果可能,至少在社交资料标签中。

更新:

我需要在 CXCallUpdate 中添加 customInfo(如 unique-id),可以吗?

您设置为 CXCallUpdateremoteHandleCXHandle 值将显示在您按“最近”中的 "i" 信息按钮时获得的页面中. (它将显示为 phone 号码、电子邮件地址或 "social profile",具体取决于 CXHandletype 是否为 phone 号码,电子邮件地址,或 "generic"。)但它不会显示在最近的实际行中。