0

This question is for iOS 10 and Xcode 8. I know how to get user local address book contacts using ABAddressbook and show them in my app. What I was trying to do next are two things

  • Show the user what contacts he/she has blocked himself
  • Try see if I can block or unblock those contacts programmatically

The reason I am doing this is that as of now the only way to "block" a contact using native iOS app is to click on a contact, scroll down and click on block/unblock button. I was just trying to figure out if I can help the user quickly see all the contacts in their addresbook they have blocked and perhaps unblock/block one with one less tap using my app.

I have looked into callkit and that is not what I need. I am not creating a VOIP app nor do I need to create my own block list.

I have googled quite a bit and didn't find an answer for blocking / unblocking contacts using ABAddressbook which must mean its not possible. Suggestions?

Sam B
  • 27,273
  • 15
  • 84
  • 121

1 Answers1

0

In some way it is not possible till your device is jailbroken as this says and also it is possible if we use CallKit framework as Possible to programmatically block phone number in iOS source.

Apple document Says

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

Community
  • 1
  • 1
user3182143
  • 9,459
  • 3
  • 32
  • 39