Describe the bug
According to the docs here, if we use:
const {contacts} = await Contacts.getContacts({
projection: {
name: true // <======
}
});
It will only return two properties: contactId and name. This is not what is happening, I am receiving more fields, phones.
Example:
[
{
"contactId": "1",
"name": {
"display": "Juan Perez",
"given": "Juan",
"family": "Perez"
},
"phones": [
{
"type": "mobile",
"number": "(809) 333-2222"
},
{
"type": "custom",
"label": "Flote",
"number": "(849) 333-2222"
}
]
},
]
The same thing is happening with the pickContact() method. Example:
const result = await Contacts.pickContact({
projection: {
name: true
}
});
Platforms
iOS seems to be fine, but maybe you can re-validate the issue on iOS to be sure is not happening.
To Reproduce
Steps to reproduce the behavior:
- Install the latest version of the plugin
- Call
getContacts() method with a projection with only name
- Call
pickContact() method with a projection with only name
Expected behavior
Contacts should have only a name object, no more than that.
Example:
[
{
"contactId": "1",
"name": {
"display": "Juan Perez",
"given": "Juan",
"family": "Perez"
},
},
]
Screenshots
None.
Smartphone (please complete the following information):
- Device: Android Emulator Nexus 6
- OS: API 31 Android 12
Additional context
None.
Describe the bug
According to the docs here, if we use:
It will only return two properties: contactId and name. This is not what is happening, I am receiving more fields, phones.
Example:
The same thing is happening with the
pickContact()method. Example:Platforms
iOS seems to be fine, but maybe you can re-validate the issue on iOS to be sure is not happening.
To Reproduce
Steps to reproduce the behavior:
getContacts()method with a projection with only namepickContact()method with a projection with only nameExpected behavior
Contacts should have only a name object, no more than that.
Example:
Screenshots
None.
Smartphone (please complete the following information):
Additional context
None.