locked
Contacts API - Autocomplete Use Case

    Question

  • I'm trying to create a ComboBox that implements autocomplete pulling results from the People app.  Essentially I want to recreate the functionality that currently exists in the Mail app for the To/Cc/Bcc fields.  I was able to launch the ContactPicker, but I didn't see any API for reading all contacts or getting a list of contacts based on some initial characters.  Is this possible with the current APIs available?
    Tuesday, September 11, 2012 4:55 PM

Answers

  • The mail app could very well generate autocomplete data from the emails it knows you have received and sent in the past. But keeping a live channel to all apps, that can provide contact informations is not part of the Windows 8 contract concept yet. And I stand by it... from a users perspective its an approach worth trying out. After all the apps that have asked for access to the address book in the past and then silently sent this data off to a remote server this explicit selection of contact data is a welcome alternative for users.

    We as app developers have to take some extra steps, yes. And live updates of contacts are no longer possible without using a cloud API.

    • Marked as answer by Dino He Monday, September 24, 2012 2:23 AM
    Thursday, September 20, 2012 1:33 PM

All replies

  • Hi

    As far as I know, there isn't have such a API.

    But I think you can use the ContactPicker.PickMultipleContactsAsync  get all the names and store them in a list.

    Hope it helpful.

     

    Thursday, September 13, 2012 2:44 PM
  • Unfortunately that doesn't really help - I'm using that already for the user to be able to use the picker, but it requires user interaction and doesn't solve the autocomplete use case...  :-(
    Thursday, September 13, 2012 4:49 PM
  • I would guess that the email app uses the Windows Live/Account to do the autocomplete. You can not query the people app in the background (thankfully from a users perspective).
    Monday, September 17, 2012 1:02 PM
  • I would guess that the email app uses the Windows Live/Account to do the autocomplete. You can not query the people app in the background (thankfully from a users perspective).
    I don't see why this would be the best approach for users....  If Google creates a GMail Metro application, I as a user would actually want it to be able to provide autocomplete functionality for my entire address book as it exists in the People App.  Not having such a capability sort of defeats the purpose of having a combined single source of truth for contacts in the OS - Google would need to do their own autocomplete using only GMail contacts.  Obviously Microsoft saw the need for this when creating their own mail application, it's just a shame that they didn't think to provide the same capability to other app developers.  Protect my privacy by allowing me to control what apps can access my data, not by gimping third party apps from accessing the data entirely.
    Monday, September 17, 2012 9:56 PM
  • The mail app could very well generate autocomplete data from the emails it knows you have received and sent in the past. But keeping a live channel to all apps, that can provide contact informations is not part of the Windows 8 contract concept yet. And I stand by it... from a users perspective its an approach worth trying out. After all the apps that have asked for access to the address book in the past and then silently sent this data off to a remote server this explicit selection of contact data is a welcome alternative for users.

    We as app developers have to take some extra steps, yes. And live updates of contacts are no longer possible without using a cloud API.

    • Marked as answer by Dino He Monday, September 24, 2012 2:23 AM
    Thursday, September 20, 2012 1:33 PM