如何处理地址簿更改
在我们的应用程序中,我们保留对地址簿中联系人的引用。确保我们可以处理更新(从我们的应用程序到地址簿以及从地址簿到我们的应用程序)的最佳方法是什么。
我们希望确保能够处理拼写错误、地址电话和电子邮件更改、同步、重复、名字和公司名称的“有趣”使用等。
目前,我们首先检查地址簿 ID。仅当情况发生变化时,我们才会更新信息/尝试找回联系人。这还不够好。
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JPContactArchive https://github.com/joepasq/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.