Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter truecaller spam contacts (saved with name "Identified as Spam") while importing contacts from phonebook on ios

As per the behaviour of truecaller on iOS, it creates a contact named "Identified as spam" for its list of spam contacts.

While importing contacts in my app, I want to avoid importing this contact.

Is there any(localization safe) way to do it on iOS?

like image 675
Nikhil Jindal Avatar asked Oct 20 '22 04:10

Nikhil Jindal


1 Answers

kABPersonNoteProperty property value on contact created by Truecaller always remains the same irrespective of localization. Its value is always equal to dont_remove_this_truecaller_id.

So, you can filter the contacts comparing this property value.

like image 123
Nikhil Jindal Avatar answered Oct 23 '22 03:10

Nikhil Jindal