QuisApp / flutter_contacts

MIT License
84 stars 140 forks source link

Add LOOKUP_KEY #93

Open svprdga opened 1 year ago

svprdga commented 1 year ago

It would be nice to add the LOOKUP_KEY parameter for each contact.

This identifier seems to be the only way to identify contacts between devices, since the regular ID might change in contact synchronizations and between devices.

This threads explains how to obtain it: https://stackoverflow.com/questions/58118556/get-cross-device-unique-id-for-android-phone-contacts

joachim-quis commented 1 year ago

Nice! Thanks for the suggestion. Will look into it shortly.

svprdga commented 1 year ago

Hi @joachim-quis , it is OK if I submit a PR with this parameter added, or you prefer to do it yourself?

MartinHlavna commented 4 months ago

Hello,

any updates on this?

sanchitmonga22 commented 3 months ago

Hi, is there any update on this? what would be the iOS equivalent of this?

svprdga commented 3 months ago

Hi, is there any update on this? what would be the iOS equivalent of this?

I think on iOS the contact ID is the same even between devices.

joachim-quis commented 1 month ago

Hi @joachim-quis , it is OK if I submit a PR with this parameter added, or you prefer to do it yourself?

Hi @svprdga - it would be amazing if you could submit a PR actually! I'm happy to review/approve it :)

PropFault commented 1 day ago

Any update on this? I am developing an app for my work and I am struggling to relate contacts added using this plugin with the contacts on our remote database. I am currently using a map in a database to map the contact ID i get after adding the contact using the plugin to the IDs in our remote system but we regularly have problems with contacts being orphaned due to the id changing locally.

I am going to have to do a bandaid fix by storing the remote ID in a group or note or something but this feature would be a godsend.