Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

All phone numbers from navigator.contacts are null

$
0
0

@alschwank wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>