flutter_contacts icon indicating copy to clipboard operation
flutter_contacts copied to clipboard

iOS Get All Contacts

Open Faiyyaz opened this issue 5 years ago • 5 comments

Hi,

I have changed some code for get all contacts as it was not fetching contacts from all containers(Keyword as per the contact framework of iOS) of contacts because of which the number of contacts returned where less or as i can say only limited to phonebook.

Faiyyaz avatar May 21 '20 11:05 Faiyyaz

Thanks for the PR! I will review this weekend.

lukasgit avatar Jul 16 '20 21:07 lukasgit

These changes will duplicate the iOS contacts. First I too made this change in my forked branch but I had to revert this as it will return duplicate list of contacts

jaypatel04 avatar Jul 17 '20 10:07 jaypatel04

But what if someone wants contact from all sources irrespective whether duplicate or not. And @jaypatel04 have you been able to filter out the duplicate contacts somehow?

Faiyyaz avatar Jul 17 '20 10:07 Faiyyaz

I'm sorry for the delay. I lost two very special people in my life. I'm back now and will work on your PR over the weekend. Thanks for your patience and understanding.

lukasgit avatar Oct 01 '20 22:10 lukasgit

But what if someone wants contact from all sources irrespective whether duplicate or not. And @jaypatel04 have you been able to filter out the duplicate contacts somehow?

Yes, I implemented all containers fetch as per your solution and in the list just kept one check to prevent duplicates. It’s manual check at every insert in list 😯

jaypatel04 avatar Oct 02 '20 02:10 jaypatel04