Coder Social home page Coder Social logo

Comments (4)

rhodey avatar rhodey commented on June 14, 2024

Yes. A few months ago I did some preliminary reading on contacts groups and multiple sources said that it was impossible for anyone but Google to support contact groups due to hard coded restrictions in the Android OS. I haven't done research since then but these same sources turned out to be wrong about a few other things, so I'm pretty sure it must be possible.

Labelling as feature request, will get to it.

from flock.

rhodey avatar rhodey commented on June 14, 2024

Just checking in to provide some updates on this feature request...

I had to dig into Android contact groups in order to resolve #54 and in doing so found nothing serious blocking contact group support in Flock. The only reason I've yet to implement this feature is that I haven't come up with a "clean" way to map contacts to groups in the world of CardDAV.

I think the best way to map contacts to contact groups is to have one separate address book per each group and have this address book contain only contacts within its group. The problem with this approach is that the servers running the Flock Sync service don't currently support multiple address books per user.

Some other ideas:

  1. Create a new group "VCard property" to be set on each contact, so each contact object would contain the name of all its groups. One issue with this is that a change to group name would require a change in all contacts within that group meaning wasted bandwidth.
  2. Create the new group property but have it reference a permanent group ID instead of name, this would allow group name to change without requiring a change to all the contacts it contains.

Support for multiple address books is a missing feature in many WebDAV servers and because of this I kind of prefer the group id property idea. The thing left to figure out is where in WebDAV or CardDAV should the mapping of group ids to group names be maintained?

from flock.

rhodey avatar rhodey commented on June 14, 2024

happy update :D

I'm not sure how I glazed over this before but the vCard RFC actually specifies exactly how contact groups should be implemented within vCard, check out section 6.1.4

vCards with the KIND property set to group are expected to represent groups, members of the group are recorded within the group vCard by use of the MEMBER property. The value of a MEMBER property must be a URI and it makes sense the most sense to me for this URI to contain the UUID property of the member contact, eg: urn:uuid:<member contact uuid>

Hoping to move forward with this soon, Flock will probably be patched to copy over group information on import of contacts but we will also need to create a new UI for managing of contact groupings-- that might be difficult to make usable.

from flock.

cyanfr avatar cyanfr commented on June 14, 2024

Oooo! Nice! Thanks for the update.

from flock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.