I started developing an app to block someone that already exists in the phonebook, I know the iPhone can do it by itself, but I need this ability in my App And also I know that I can block unknown senders programmatically But the problem is with Known Senders that are in our phonebook can anyone help me?
Asked
Active
Viewed 126 times
2
-
What do you want to block? Incoming calls? Incoming messages? – Paulw11 Sep 09 '20 at 08:23
-
both of them, I have a database with over 1000 phone number and I want to block them in both Messages and Phone app – Farrokh Sep 09 '20 at 12:32
-
To block them in the phone you need to implement a call blocking extension using the CallKit framework https://github.com/paulw11/CallKitTutorial there is no way for your app to block messages from a user that is in the contacts. You can only block messages from an unknown sender. https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering – Paulw11 Sep 09 '20 at 20:26
-
I know about callKit extension and also about unknown senders, but I need to block a known sender for both of call & SMS just like iPhone regular blocking – Farrokh Sep 10 '20 at 19:30
-
You can't. Only the user can do that – Paulw11 Sep 10 '20 at 20:46