A demo to show the intact process to add indentifications for phonenumber or block phonenumber
一个展示如何添加号码识别以及号码屏蔽的完整demo
- If the phonenumber is in your iphone contacts, the identification function is useless.
- If block a phonenumber, you won't see the incoming call.
- Open App Groups to shared the data between main App and the extension App.
- The phonenumbers add to CXCallDirectoryExtensionContext must have country code otherwise it's useless.
- Before add to CXCallDirectoryExtensionContext, the phonenumbers need to sort by ascending and remove the duplicates.
- The maximum quantity can be added between 1 and 2 million. I try to add 1 million succeeded but 2 million failed.
- Currently we can only update it full amount but can't incremental updates.
- 如果该号码已存在手机里,标记识别将会无效
- 如果屏蔽某号码,看不到该号码来电
- 打开主App和扩展App的数据共享,以实现两个应用共享数据
- 添加到call表单中的电话号码必须带上国家区号
- 添加号码到表单之前,需要对数据进行去重和升序排列
- 最大数量在100万到200万之间,原因可能是超时无效
- 目前好像只能全量更新数据,不能增量更新,效率比较低
Well, you need modify some setting, make sure the demo can build in your iPhone.
你只需要改一些东西就可以真机运行了,模拟器无法测试该功能。
Rule -> "ExtensionApp_BundleIdentifier = MainApp_BundleIdentifier + ExtensionApp_TargetName"
规则:扩展应用id = 主应用id + 扩展应用的target名称
DB path use the App Groups name as a part, so you should change the name.
数据库路径中采用App Groups的名称作为一部分,所以别忘记修改。
Click the "+" button to add your new own group, name should be "group.xxxxx".
点击 + 按钮可以创建你自己的App Group,名称应该是 group.xxx 这种形式。
It's easy to add to any app.
很容易集成