Hi,
I’m using cordova-plugin-contacts to get all contacts from my phone. I get all contacts and all their entries are correct except the phone numbers. All phone numbers are null. Do you have an idea why? Is there a permission issue?
I’m using:
- ionic 1.7.10
- ionic lib 1.1.1
- cordova 5.4.0
- cordova-plugin-contacts 1.1.0
- Android 6.0
This is the code to get the contacts:
function loadContacts() {
ionic.Platform.ready(function () {
var options = new ContactFindOptions();
options.multiple = true;
options.hasPhoneNumber = true;
var fields = ["*"];
navigator.contacts.find(fields, _importContacts, _loadingContactsError, options);
});
}
Thanks,
Alex