Page 1 of 1

Contact phoneNumbers field NULL only for certain contacts

Posted: Sat Nov 01, 2014 2:07 am
by Tracy Hicks

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?


Contact phoneNumbers field NULL only for certain contacts

Posted: Sat Nov 01, 2014 6:28 pm
by Illya Stepanov

Hi Tracy -

Sorry, but this not very clear, what contact plugin API you're working with, could you please specify it?


Contact phoneNumbers field NULL only for certain contacts

Posted: Sat Nov 01, 2014 8:01 pm
by Tracy Hicks

Hi Illya,

I'm using the "org.apache.cordova.contacts" plugin thats included by default with the Appery.io app. I'm not sure which version of the plugin is included with the projects by default, but my app settings say that it is using Cordova 3.6.

I should also mention that I'm using the plugin from a Generic Service within my app.


Contact phoneNumbers field NULL only for certain contacts

Posted: Sat Nov 01, 2014 8:13 pm
by Illya Stepanov

Ok, got it! We will test it and we let you know, but this will take some time.


Contact phoneNumbers field NULL only for certain contacts

Posted: Mon Nov 03, 2014 8:40 pm
by Maryna Brodina

Hello!

I am sorry for delay! Please share your app and lets us know it's name.

Also post steps to reproduce.


Contact phoneNumbers field NULL only for certain contacts

Posted: Mon Nov 17, 2014 12:36 am
by Tracy Hicks

Sorry for the delay in responding. Do I need to share my app with a specific user/email address?


Contact phoneNumbers field NULL only for certain contacts

Posted: Mon Nov 17, 2014 1:41 am
by obullei

Hello!

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and send us the app name.