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

Ionic contacts fetch does not properly on iOS

$
0
0

@champion007 wrote:

Hi Folks,

I am doing one POC where i need to fetch device contacts list using ionic native plugin. Works fine on android.
iOS i am having tricky issue when there is no number added for device contact list it fails and stops there only, does not display contact details further.

I tried with removing hasPhoneNumber or making it false nothing worked.

this.contacts.find(["name", "phoneNumbers"],
    { multiple: true, hasPhoneNumber: true }).then((contacts) => {
       if (contacts.length != 0) {
         this.contactsfound = contacts;
       } else {
         this.contactsfound.push({ displayName: 'No Contacts found' });
     }
 });

Code works fine on Android.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70752

Trending Articles



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