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