如何处理地址簿更改

如何处理地址簿更改

本文介绍了如何处理地址簿更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用中,我们保留对通讯录中联系人的引用。确保我们能够处理更新的最佳方法是什么(从我们的应用程序到地址簿,以及从地址簿到我们的应用程序)。

In our app we keep references to contacts in the address book. What is the best way to make sure that we can deal with updates (both from our app to the address book as well as from the address book to our app).

我们希望确保能够处理拼写错误,更改电话和电子邮件地址,同步,重复,对名字和公司名称的有趣使用等。

We want to make sure we can handle spelling mistakes, address phone and email changes, synchronization, duplication, 'interesting' use of first last and company name etc.

当前,我们首先检查通讯录ID。仅当更改时,我们才会更新我们的信息/尝试找回联系人。这不够好。

Currently we check first on addressbook id. Only if it changes, we update our information/try to find back the contact. This is not good enough.

推荐答案

JPContactArchive 如果他们的电话号码或电子邮件已更改,则会自动更新应用的内部联系人记录。它假定通讯录有些井井有条。它不处理重复项,而是依靠用户选择正确的重复项。

JPContactArchive https://github.com/joepasq/JPContactArchive will auto-update an app's internal record of a contact if their phone number or email has changed. It assumes a somewhat orderly address book; it does not handle duplicates, relying on the user to pick the correct one.

这篇关于如何处理地址簿更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:49