mrameezraja / cordova-async-contacts-plugin

**[Deprecated]** Load contacts from iOS address book asynchronously
MIT License
3 stars 0 forks source link

AsyncContacts Plugin

Load contacts from iOS address book asynchronously (upto 15000 contacts in ~5-10 seconds)

This plugin is inspired from http://github.com/Alterplay/APAddressBook.

cordova plugin add https://github.com/mrameezraja/cordova-async-contacts-plugin.git

Methods

addressbook.getAsync


  window.plugins.addressbook.getAsync(function(contacts){
      console.log(contacts.length);
  }, function(error){
    console.log(error);
  })

Available fields:

addressbook.checkPermission


  window.plugins.addressbook.checkPermission(function(permission){
      console.log(permission);
  }, function(error){
    console.log(error);
  })

Supported Platforms