Questions tagged [contactpicker]

51 questions
22
votes
8 answers

Pick contact directly from contact picker intent

Hello I want to pick a contact from our default contact book intent. I tried several ways to do it. Please find the code below. The problem with all those code is that they open one intermediate documents screen with few options there user has to…
19
votes
4 answers

iOS Swift CNContactPickerViewController search contact and add to selection

I am using iOS 9 and Swift 2.2 I have implemented iOS inbuilt CNContactPickerViewController using CNContactPickerDelegate to get the contact numbers, In the CNContactPickerViewController Screen, when I click on search field on top and search for a…
Sujay U N
  • 4,974
  • 11
  • 52
  • 88
8
votes
7 answers

dequeue reusable cell always crashes

in this code i add the programatic VC: @IBAction func addPerson(_ sender: UIBarButtonItem) { let controller = CNContactPickerViewController() controller.delegate = self navigationController?.present(controller, animated:…
Marian Iconaru
  • 199
  • 4
  • 12
7
votes
5 answers

Extract email from CNContactProperty - iOS 9

I have an iOS app which needs access to the Contacts picker view controller in order to allow the user to select a contact property such as email address/ telephone numbers of imessage email addresses. The problem I am having right now, is that I…
Supertecnoboff
  • 6,406
  • 11
  • 57
  • 98
6
votes
2 answers

iOS9 - CNContactPickerViewController : pre-select contacts

I use the new CNContactPickerViewController to select contacts from the address book and use them in my app. When I press a button, I call this code: let contactPicker = CNContactPickerViewController() contactPicker.delegate = self …
Frederic Adda
  • 5,905
  • 4
  • 56
  • 71
5
votes
0 answers

How can I hide "Groups" and cancel button in CNContactPickerViewController?

Im using a CNContactPickerViewController and I want to hide the cancel and the group buttons I tried contactPickerViewController.navigationItem.leftBarButtonItem = nil and contactPickerViewController.navigationItem.hidesBackButton = true but…
jerem
  • 1,016
  • 2
  • 12
  • 27
5
votes
1 answer

ContactPicker is not working in Windows Phone 8.1 Silverlight

I've tried to get contact info in Windows Phone 8.1 SL app by following Quickstart: Selecting user contacts In my function, private async void PickAContactButton_Click(object sender, RoutedEventArgs e) { var contactPicker = new…
ToMonika
  • 51
  • 1
3
votes
2 answers

Pick email, name, and phone number from contact picker intent

how can I get the email address correctly? Here's what I've done so far. @android.webkit.JavascriptInterface public void chooseContact(){ Intent pickContactIntent = new Intent(Intent.ACTION_PICK); …
catherine
  • 22,492
  • 12
  • 61
  • 85
3
votes
1 answer

contact selection not possible when using the search bar

Im using the ContactPickerViewController with CNContactPickerDelegate to get the contact numbers func contactPicker(picker: CNContactPickerViewController, didSelectContacts contacts: [CNContact]) {...} but when I try…
jerem
  • 1,016
  • 2
  • 12
  • 27
3
votes
2 answers

Android Contact Picker get Name + Number + Email

I´m having trouble with the Contact Picker, it works with the Phone.DISPLAY_NAME and the Phone.NUMBER but it doesn`t work with the Email.ADDRESS public class CustomerForm extends Activity { private final static int CONTACT_PICKER = 1; private…
absolutkarlos
  • 570
  • 1
  • 9
  • 22
3
votes
1 answer

Windows phone 8.1 using Contact Picker to retrieve both email and phone number

I am using the following code to allow the user to select contacts: ContactPicker ContactPicker = new ContactPicker(); ContactPicker.DesiredFieldsWithContactFieldType.Add(ContactFieldType.PhoneNumber); var Contacts = await…
Keran
  • 171
  • 11
2
votes
1 answer

CNContactPickerViewController validation for mobile number in iOS Swift

I have used CNContactPickerViewController to enable user to pick a contact from their contact list stored on the phone. I use the contact name and number using CNContactPicker delegate methods. Code as below func contactPicker(_ picker:…
Khadija Daruwala
  • 1,185
  • 3
  • 25
  • 54
2
votes
1 answer

Espresso and Android contact picker

I try to add a contact with an Android contact picker by Espresso, but this does not work. This is the command to invoke the contact picker: Intent intent = new Intent(Intent.ACTION_PICK,…
user2368140
1
vote
0 answers

memory leaks when i leave CNContactPickerViewController

i have 3 ViewControllers. the first one uses CNContactPickerDelegate (in contactPicker didSelect contact i push the third ViewController) the second one is CNContactPickerDelegate which is presented by pressing add bar button item (IBAction) The…
1
vote
0 answers

Implement View Controller (Tab Item) as CNContactPickerViewController

I have an application that consists of a tab bar, and one of the tab items is titled "Contacts". When the user selects this item, I would like to present them right away with the CNContactPickerViewController. Currently, I have a controller,…
SF Dev
  • 389
  • 1
  • 3
  • 13
1
2 3 4