how to get the incoming call number by using callkit

后端 未结 2 506
傲寒
傲寒 2020-12-02 00:39

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...

2条回答
  •  借酒劲吻你
    2020-12-02 01:16

    The Call Directory extension introduced in iOS 10 works like the Safari Content Blocker Extension that was introduced in iOS 9. Your extension has to supply a list of phone numbers (in safari's extension, it was a json file), these numbers will be stored by the iOS, and on the event of an incoming call, the system checks the list provided by your extension( same like safari would check the rules specified by the json file before loading a website ), provided, your extension is active at that time.

    So, using this feature for creating a Caller ID like app is not possible, because things are not dynamic. Also there may be a limit on the number of phone numbers you can provide in the list, which hopefully be announced by the iOS 10 release.

提交回复
热议问题