Read Contacts Data on iOS and Android
Switch branches/tags
Nothing to show
Clone or download
Latest commit b864fca Aug 9, 2018

README.md

Xamarin.Forms.Contacts

Read Contacts Data on iOS and Android

Easy usage in Portable Project:

var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync();

You can generate ObservableCollection like that:

var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync();

ObservableCollection<Contact> = new ObservableCollection<Contact>(contacts);

You can use filter like that:

var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync(x=>x.Emails.Count > 0);

DO NOT FORGET ADD THIS PERMISSIONS:

ANDROID

READ_CONTACTS

iOS

If you don't have mac connection you should Right Click the Info.plist and Open With XML editor. Add this key into

	<key>NSContactsUsageDescription</key>
	<string>We need contact permission to do ...</string>