We've updated the Cordova Contacts Plugin on PhoneGap Build. To use this latest version, put the following in your config.xml:
or, if you'd prefer to continue to use the previous version:
Changelog available here.
Cheers!
<gap:plugin name="org.apache.cordova.contacts" version="0.2.11" />
or, if you'd prefer to continue to use the previous version:
<gap:plugin name="org.apache.cordova.contacts" version=0.2.9" />
Changelog available here.
Cheers!
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Posted 6 years ago
- 27 Posts
- 4 Reply Likes
Hi, thank you for update!
What I noticed is that when I use desired fields (new option to restrict returned fields from find operation), so when I use it like this:
var contactsFields = [ '*' ];
var contactsOptions = new ContactFindOptions();
contactsOptions.filter = '';
contactsOptions.multiple = true;
contactsOptions.desiredFields = [
navigator.contacts.fieldType.id,
navigator.contacts.fieldType.displayName,
navigator.contacts.fieldType.phoneNumbers
];
navigator.contacts.find(
deviceContactsSuccess,
deviceContactsError,
contactsFields,
contactsOptions
);
All Contact objects has null value in the fields, I tried to use it like this:
"navigator.contacts.fieldType.displayName"
or
"displayName"
or
displayName
But none of them are working, I removed the contactsOptions.desiredFields and it is working fine.
Also in "Installed Plugins" section of my account app the "LATEST VERSION" is 0.2.9 and my version 0.2.11 is in red.
I am using Android 4.4.2
Thank you in advance!
What I noticed is that when I use desired fields (new option to restrict returned fields from find operation), so when I use it like this:
var contactsFields = [ '*' ];
var contactsOptions = new ContactFindOptions();
contactsOptions.filter = '';
contactsOptions.multiple = true;
contactsOptions.desiredFields = [
navigator.contacts.fieldType.id,
navigator.contacts.fieldType.displayName,
navigator.contacts.fieldType.phoneNumbers
];
navigator.contacts.find(
deviceContactsSuccess,
deviceContactsError,
contactsFields,
contactsOptions
);
All Contact objects has null value in the fields, I tried to use it like this:
"navigator.contacts.fieldType.displayName"
or
"displayName"
or
displayName
But none of them are working, I removed the contactsOptions.desiredFields and it is working fine.
Also in "Installed Plugins" section of my account app the "LATEST VERSION" is 0.2.9 and my version 0.2.11 is in red.
I am using Android 4.4.2
Thank you in advance!
- 730 Posts
- 18 Reply Likes
- 4116 Posts
- 192 Reply Likes
Will test this out and get back to you.
In the mean time recommend downgrading back to previous release.
Thanks.
In the mean time recommend downgrading back to previous release.
Thanks.
- 730 Posts
- 18 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers



