i want to fetch all contact list into my app.but showing some contact.but i want all contacts.
and Various devices are showing different.like my contact list showing 20 and my friends contact list
5 how can i fix it.
.ts
this.platform.ready().then(() => {
var opts = {
///filter : "M",
multiple: true,
hasPhoneNumber:true,
fields: [ 'displayName', 'name' ]
};
this.contacts.find([ 'displayName', 'name' ],opts).then((contacts) => {
this.contactlist=contacts;
}, (error) => {
console.log(error);
})
})
HTMl
<ion-list>
<span *ngFor="let contact of contactlist" >
<ion-item *ngIf="contact.displayName">
{{contact.displayName}} = {{contact.phoneNumbers[0].value}}
</ion-item>
</span>
</ion-list>
please helpme anyone.