You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Robert La Ferla (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/02/07 22:20:59 UTC

[jira] [Issue Comment Edited] (CB-223) Add support for iOS contact groups

    [ https://issues.apache.org/jira/browse/CB-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202790#comment-13202790 ] 

Robert La Ferla edited comment on CB-223 at 2/7/12 9:19 PM:
------------------------------------------------------------

I think there needs to be an additional set of API methods for dealing with groups/categories independent of the individual contact.

e.g.

  (1) get a list of groups/categories
  (2) get a list of contacts for a specific group/category.
  (3) add a contact to a group/category
  (4) remove a contact from a group/category

I think this approach can work cross-platform or at least rounds out the current API to give access to this needed functionality yet maintains some level of platform independence.

                
      was (Author: rlaferla):
    I think there needs to be an additional set of API methods for dealing with groups/categories independent of the individual contact.

e.g.

  (1) get a list of groups/categories
  (2) get a list of contacts for a specific group/category.

I think this approach can work cross-platform or at least rounds out the current API to give access to this needed functionality yet maintains some level of platform independence.

                  
> Add support for iOS contact groups
> ----------------------------------
>
>                 Key: CB-223
>                 URL: https://issues.apache.org/jira/browse/CB-223
>             Project: Apache Callback
>          Issue Type: New Feature
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: iOS
>            Reporter: Robert La Ferla
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: addressbook, categories, contacts, groups, ios
>
> Contacts on iOS are organized by group.  There is the default group "All Contacts" plus any custom groups that the user set up.  Contacts retrieved by Apache Cordova / phonegap do not contain which group they are in. 
> CONTACT CATEGORIES PROPERTY
> I believe that iOS groups are analogous to phonegap contact categories and thus should be mapped to them.  If not, another property should be created.
> From the Cordova docs:
> "categories: An array of all the contacts user defined categories. (ContactField[])"
> IOS IMPLEMENTATION NOTES:
> In the iOS AddressBook API, the function ABAddressBookCopyArrayOfAllGroups() gets the list of groups.
> https://developer.apple.com/library/ios/#documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Chapters/DirectInteraction.html#//apple_ref/doc/uid/TP40007744-CH6-SW1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira