cordova contacts plugin contact data is duplicating instead of overwriting contact data

三世轮回 提交于 2019-12-06 09:47:59
tmuecksch

I had the same issue and fixed it by adding an id to the phone numbers. For your example code the line you'd have to change would look like this:

c.phoneNumbers[0] = {type : 'mobile', value: user.iceTV.number, id: 0}; 

But: This only fixes the duplication. When you remove a phoneNumber in the database, it won't be removed in the contact. See my question here for further details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!