CallKit should provide way to block calls from numbers based on a callback

Originator:ash
Number:rdar://39957569 Date Originated:May 2, 2018
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification:Suggestion Reproducible:
 
The CallKit documentation ( https://developer.apple.com/documentation/callkit ) reads:

> This is useful for apps that [...] allow the user to block any numbers that match a set of criteria.

But that is not the case. As further described in the documentation:

> To block incoming calls for a particular phone number, you use the addBlockingEntry(withNextSequentialPhoneNumber:) 

The idea being, just call that method over and over with every number in the block list. The problem is discussed in more detail in this developer forum post: https://forums.developer.apple.com/thread/80454

What if I want to block based on some kind of pattern? Like what if I always want to block numbers from a specific area code, or 1-800 numbers? The API doesn't allow that use case, contradicting the documentation's description of the API.

Instead of adding numbers to a block list, I would like to see a kind of pattern-matching capability added, maybe a Regex even. But ideally I'd just have a callback function and could return a true/false. Thanks!

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!