Skip to content

mrameezraja/cordova-async-contacts-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • addressbook.checkPermission

addressbook.getAsync


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

Available fields:

  • firstName
  • middleName
  • lastName
  • phones

addressbook.checkPermission


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

Supported Platforms

  • iOS

About

**[Deprecated]** Load contacts from iOS address book asynchronously

Resources

License

Stars

Watchers

Forks