Find Favorite contacts from the iOS Address Book API

前端 未结 3 1159
时光说笑
时光说笑 2020-12-10 13:45

Is there a way to find Favorite contacts from the iOS Address Book API? I\'m referring to the contacts a user places in his Favorites tab in the Contacts app.

3条回答
  •  情话喂你
    2020-12-10 14:14

    Filip is correct, you cannot access the list of favorite contacts on iOS via a public, app-store legal API.

    To come close you could try to guess a user's favorite or most important contacts from their address book. Let's assume that people know most about the people they are closest to and that this is also reflected by their phone's address book:

    For example, the address book contact for a close friend contains more information (address, birthday, maybe a nickname) than a contact for a business associate or a colleague at work.

    We could then use this information to compute an importance score for each address book contact. By taking the n most important contacts we could approximate a user's favorite contacts.

    I've written about this idea some more on my blog: http://dbader.org/blog/guessing-favorite-contacts-ios You can also find a sample implementation and a demo application there.

提交回复
热议问题