当用户不是 Swift 中的联系人时,Skype 等应用如何在本机 iOS 最近通话列表中显示来电显示?
How do apps like Skype show caller IDs in the native iOS recent calls list when a user isn't a contact in Swift?
我注意到许多应用程序(如 Skype、Slack、Telegram 等)能够在我的本机 iOS 最近通话列表中显示这些应用程序中保存的联系人 ID,就好像它们是现有联系人一样。
这是我在 Google 搜索中找到的一个很好的例子:
我目前手动存储和操作联系人,以便为我当前正在开发的应用程序获得同样的效果。这有点混乱,我想知道我是否可以以某种方式实现所有这些应用程序所实现的目标?
我四处搜索了一番,但不确定应该去哪里找。 CNContactStore class 没有提及任何相关内容。
如何做到这一点,或者我应该去哪里学习如何做到这一点?
Paulw11 的评论是我问题的答案:
They report the name via a CXCallUpdate when they report the incoming
call. If your app isn't a voip app then you can create a callkit
directory extension github.com/paulw11/CallKitTutorial
我注意到许多应用程序(如 Skype、Slack、Telegram 等)能够在我的本机 iOS 最近通话列表中显示这些应用程序中保存的联系人 ID,就好像它们是现有联系人一样。
这是我在 Google 搜索中找到的一个很好的例子:
我目前手动存储和操作联系人,以便为我当前正在开发的应用程序获得同样的效果。这有点混乱,我想知道我是否可以以某种方式实现所有这些应用程序所实现的目标?
我四处搜索了一番,但不确定应该去哪里找。 CNContactStore class 没有提及任何相关内容。
如何做到这一点,或者我应该去哪里学习如何做到这一点?
Paulw11 的评论是我问题的答案:
They report the name via a CXCallUpdate when they report the incoming call. If your app isn't a voip app then you can create a callkit directory extension github.com/paulw11/CallKitTutorial