@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