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
- addressbook.getAsync
- addressbook.checkPermission
window.plugins.addressbook.getAsync(function(contacts){
console.log(contacts.length);
}, function(error){
console.log(error);
})
Available fields:
- firstName
- middleName
- lastName
- phones
window.plugins.addressbook.checkPermission(function(permission){
console.log(permission);
}, function(error){
console.log(error);
})
- iOS