incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-223) Add support for iOS contact groups
Date Tue, 07 Feb 2012 22:26:59 GMT

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

Becky Gibson commented on CB-223:
---------------------------------

Agreed those are useful apis but we would have to agree to diverge from the W3C Contacts API.
 There is a recent editor's draft:  http://w3c-test.org/dap/contacts/ 

The api's that you propose would be fairly easy to implement on iOS.  However, starting with
a person record, getting the categories that a person is assigned to is no easy task in iOS.
 Unfortunately this is how the W3C spec is implemented - the categories are included as part
of the contact record.  This will be very inefficient to implement for iOS.  After a contact
has been found, next find all of the groups, then search each group for the found contact(s)
and add the category information to the contact.  At least this will only be necessary when
"categories" is included in the search fields.  


                
> 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

        

Mime
View raw message