Plugin Contacts : get contacts is limited to 21 contacts only


#1

Hi every body, I’m working with Ionic 3 on the task of getting all device contacts, but When I use this code, The contacts number is limited at 21 contacts, and I’ve deduced this by setting the filter string, every time it’s getting contacts that doesn’t appears in the previous filter but always limited at 21.

#home.ts

    import { Component } from '@angular/core';
    import { NavController } from 'ionic-angular';
    import { Contacts } from '@ionic-native/contacts';
    
    @Component({
      selector: 'page-home',
      templateUrl: 'home.html'
    })
    export class HomePage {
      data:any;
      constructor(public navCtrl: NavController,
                  private contacts: Contacts
                  ) {
          contacts.find(['displayName', 'phoneNumbers'], {filter: "", multiple: true})
          .then(data => {

alert("len= "+data.length);
            this.data = data;
            alert(JSON.stringify(data));
          });
      }
    
    }

#home.html

  <p *ngFor="let contact of data">
    {{contact.displayName}} /
    {{contact.phoneNumbers[0].value}}
  </p>

Although the Alert show len = 663, but when displaying contacts I get only 21, does someone have any idea ?