IOS - How to block all incoming calls?

狂风中的少年 提交于 2019-12-13 09:04:09

问题


Can anyone suggest me is there a way to block all incoming calls for a while? or at least can I put my phone into silent pragmatically ? Please suggest


回答1:


No. Simply you cannot do that. There is no public API is available to do that. Your app will be in sandbox mode. You cannot access them in anyway.




回答2:


Now it can be done from iOS 10 and above using the CallKit framework upto a certain amount. The numbers we provide can be blocked. If you want to block all incoming calls, just use Airplane mode.

The CallKit framework provides programmatic access to VoIP functionality, as well as call blocking and identification.



来源:https://stackoverflow.com/questions/17946105/ios-how-to-block-all-incoming-calls

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!