如何使用私有 API 来阻止 iOS 应用程序中的传入呼叫?
我希望能够有选择地阻止我正在编写的 iOS 应用程序中的来电。这是供个人使用的,而不是 App Store,所以我可以使用私有 API 来完成此任务。
我最近遇到了核心电话框架。有没有办法使用这个框架来阻止调用?如果没有,我可以使用哪些私有 API 来执行此操作?
I would like to be able to selectively block incoming calls in an iOS application I'm writing. This is intended for personal use, not the App Store, so I'm fine with using private APIs to accomplish this.
I have recently come across the Core Telephony framework. Is there a way to use this framework to block calls? If not, what private APIs could I use to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你确定没有吗?
http://tech.ruimaninfo.com/?p=83 上的代码示例展示了如何做这样的事情。
SDK 中的核心电话标头不完整。
当然这意味着没有应用商店
这是我基于示例的代码片段,我链接了
所需的其他定义:
并且您需要监视电话中心的回调(请参阅链接示例)
我在我的 iOS5 设备上测试了这个片段
Are you sure it does not?
code examples on http://tech.ruimaninfo.com/?p=83 shows how to do such things.
Core Telephony headers in SDK are not complete.
Of course this means no app store
this is my code fragment based on example I linked
additional definitions needed:
and you need to monitor telephony center's callback(see linked example)
I tested this fragment on my iOS5 device
核心电话不支持此功能。据我所知,任何已知的私有 API 都无法做到这一点。
Core Telephony doesn't support this. To my knowledge there is no way to do this with any known private APIs either.
从 iOS 10.0+ 开始,CallKit 包含呼叫阻止和识别 API:https://developer.apple。 com/documentation/callkit
(为 2020 年或将来发现此内容的人提供的信息)
Since iOS 10.0+ there is CallKit which includes a Call Blocking and Identification API: https://developer.apple.com/documentation/callkit
(Information for people which find this in 2020 or in the future)