如何使用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获取来电号码
发布评论