How to block or cancel income calls programmatically or How to activate "do not disturb" mode in iOS programmatically.
Asked
Active
Viewed 4,351 times
3
-
3It's a built-in feature and provided by the system! It's not possible – Mannopson Jul 05 '17 at 08:41
1 Answers
6
It's clearly forbidden for a third-part app to block incoming calls. As it's described here: Can an iPhone app block phone calls?
However you can use CallKit to block unwanted calls. Your app should be able to add blocked numbers.
The reason Apple doesn't allow you to block it is because there would be a lot of abuse and Malware that would disturb user experience.

Robin Delaporte
- 575
- 5
- 15
-
"forbidden for a third-part app to block incoming calls" Is it officially documented on apple developer portal ? If it is, Will help me to prove. – Abhijeet Barge Jul 05 '17 at 11:49
-
1After searching on Apple guides lines, i was unable to find anything about blocking incoming calls. However If you are developping an app on a phone and you must not to disable its main feature. It is the same principle on Android. – Robin Delaporte Jul 05 '17 at 12:06
-
One more question - Can i block non-voip(Cellular calls) calls using CallKit? – Abhijeet Barge Jul 05 '17 at 12:10
-
Actually, when I read the Callkit documentation it seems possible to block incoming calls. If you REALLY need to do like so, you could make a workaround with your inner blocked contact. Refer to the section "Blocking Incoming Calls" of https://developer.apple.com/documentation/callkit – Robin Delaporte Jul 05 '17 at 12:26