You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the contact picker is opened on Android, contacts that have no e-mail address are excluded from the list. It also does not retrieve phone numbers for contacts that have one defined.
I have created a fix for this issue in my fork, I will push it in a moment. It basically queries the ContactsContract.Contacts table first to get the root contact entry, and then the ContactsContract.Contacts.Data table to get the subordinate entries that include e-mail addresses and phone numbers.
This functionality was what I most needed for my current project, but the retrieval of further data that is returned by the iOS version (nickname, job title, etc.) can then be added along these lines so that the two platforms are in sync.
The text was updated successfully, but these errors were encountered:
petervelosy
pushed a commit
to petervelosy/capacitor-contact-picker
that referenced
this issue
Jul 29, 2020
…ed on Android
- Modify the PICK intent so that it loads all root level contact entries (i.e. not only those with an e-mail address)
- Add two content queries so that first the root level contact (ContactsContract.Contacts), and then the subordinate contact data records (ContactsContract.Contacts.Data) are retrieved. This makes it possible to load e-mails and phone numbers for a contact, stored in the latter.
- Add the .gradle/ folder to .gitignore
Refs TeamMaestro#1
When the contact picker is opened on Android, contacts that have no e-mail address are excluded from the list. It also does not retrieve phone numbers for contacts that have one defined.
I have created a fix for this issue in my fork, I will push it in a moment. It basically queries the ContactsContract.Contacts table first to get the root contact entry, and then the ContactsContract.Contacts.Data table to get the subordinate entries that include e-mail addresses and phone numbers.
This functionality was what I most needed for my current project, but the retrieval of further data that is returned by the iOS version (nickname, job title, etc.) can then be added along these lines so that the two platforms are in sync.
The text was updated successfully, but these errors were encountered: