capacitor-community / contacts

Contacts Plugin for Capacitor
https://capacitor-community.github.io/contacts/
119 stars 52 forks source link

CANCELLED #112

Closed morsagmon closed 1 year ago

morsagmon commented 1 year ago

Issue cancelled

tafelnl commented 1 year ago

I'm delighted that you seem to have managed to resolve the issue. Can you confirm if it was either a bug in this plugin or something else

morsagmon commented 1 year ago

Hi @tafelnl . I cancelled it as I realized I misrepresented the issue. After deeper investigation I found out that getContacts() is not consistent with the objects it returns. For some contacts, the array member returned looks like this: {conatcId: "4380"} For others, it returns something like this: {conatcId: "4330", names: {}} And for others it returns: {conatcId: "4330", names: {display: "first last", ...}, phones: {...}} And some reflect the projection, while others return many other attributes not included in the projection, so the projection is not always respected. So, these differences need to be handled by us after fetching the result set. I do not have the tools to figure out what causes these differences in the contact record itself.

The original issue as I described here was about the contacts being displayed on one Android device and not on another, which turned out to be not the root of the issue.