Search code examples
iosimportaddressbookspam-prevention

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?


Solution

  • 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.