如何使用callkit获取来电号码 [英] how to get the incoming call number by using callkit

查看:479
本文介绍了如何使用callkit获取来电号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用call kit框架以编程方式获取来电号码。我尝试使用cxcallobserver类但没有用。

How to get the incoming call phone number programmatically by using call kit framework. i tried with cxcallobserver class but no use.

任何建议最有帮助...

Any suggestions most helpful...

推荐答案

使用CallKit的Call Blocking&识别功能(iOS 10中的新功能),要阻止或识别的电话号码在来电之前由应用程序的呼叫目录分机加载,并且电话号码由系统存储。然后,当来电到达时,系统会查询此存储的数据,并且可以在提供标签的来电UI中阻止或识别来电。

When using CallKit's Call Blocking & Identification feature (new in iOS 10), phone numbers to be blocked or identified are loaded by your app's Call Directory extension prior to an incoming call and the phone numbers are stored by the system. Then, when an incoming call arrives, this stored data is consulted by the system and an incoming call may either be blocked or identified in the incoming call UI with the label provided.

出于隐私和性能原因,当来电到达且应用分机无法检索来电的电话号码时,呼叫目录应用扩展程序不会启动。

For privacy and performance reasons, Call Directory app extensions are not launched when incoming calls arrive and an app extension cannot retrieve the phone number for an incoming call.

这篇关于如何使用callkit获取来电号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆