Tracy Hicks
Posts: 0
Joined: Sat Nov 01, 2014 2:07 am

Contact phoneNumbers field NULL only for certain contacts

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Contact phoneNumbers field NULL only for certain contacts

Hi Tracy -

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

Tracy Hicks
Posts: 0
Joined: Sat Nov 01, 2014 2:07 am

Contact phoneNumbers field NULL only for certain contacts

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Contact phoneNumbers field NULL only for certain contacts

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Contact phoneNumbers field NULL only for certain contacts

Hello!

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

Also post steps to reproduce.

Tracy Hicks
Posts: 0
Joined: Sat Nov 01, 2014 2:07 am

Contact phoneNumbers field NULL only for certain contacts

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

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Contact phoneNumbers field NULL only for certain contacts

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.

Return to “Issues”