abhayastudios / nativescript-contacts-lite

This nativescript-contacts-lite plugin provides pretty fast read-only access to the iOS and Android contact directory.
MIT License
13 stars 7 forks source link

Phone Number repeated with multiple account name, though in my contacts list, I don't have multiple account names #11

Closed vasudevpareek07 closed 4 years ago

vasudevpareek07 commented 4 years ago

If I have 500 contacts, I get 1000 contacts (500 from my gmail account and 500 from my MI account), but in my contacts, while saving any contact, I haven't specified any account name. Any quick help will be appreciated. Thanks.

abhayastudios commented 4 years ago

I'm afraid I don't have a proper solution for this. Apparently your device (i am assuming it is a Xiaomi) stores the contacts twice (even without you asking for it) and this plugin correctly gets the contacts from all accounts.

If it makes sense in your app you could decide to look at one of the accounts, or filter out duplicates based on phone numbers in your app.