I'm attempting to use the pickContacts method of the contacts plugin API on my iPhone running iOS 8. Some of the contacts that should have multiple phoneNumbers end up just returning null.
I've debugged the code in Xcode and I can see where the CDVContacts pickContact method is returning NSNull when it queries for the contact phone numbers. Its strange because other contacts in my address book return the phoneNumbers just fine.
Here's the code I'm using:
navigator.contacts.pickContact(function(contact) {
console.log(JSON.stringify(contact));
settings.success(contact);
}, function(err) {
console.warn("Unable to load contacts picker.");
});
Any ideas?