Contacts plugin updated to 0.2.11 on Build.

  • 1
  • Announcement
  • Updated 6 years ago
We've updated the Cordova Contacts Plugin on PhoneGap Build. To use this latest version, put the following in your config.xml:

<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!
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes

Posted 6 years ago

  • 1
Photo of Ivan Petrov Ivanov

Ivan Petrov Ivanov

  • 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!
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
Yes, I noticed this, too: XD
Photo of ismael jimoh

ismael jimoh

  • 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.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi ismael
I really found a issue right here
http://community.phonegap.com/nitobi/...