Category/Group field for Contacts is not synchronized

  • I did not try to edit anything (adding/removing people to group or adding/removing groups) but groups were showing in the gui.

  • developer

    I know, this is possible. However, I’d prefer a 100% working solution instead of having the GUI telling the users wrong things. People would complain immediately and think it’s a DAVdroid issue.

  • I am using Baikal to sync Mac OS X Address Book where I use groups. I see that Baikal sees groups as contacts and when I sync with Davdroid I get additional contacts which have name same as group name, but are otherwise empty. Counts also match: all contacts count on Android is now same as number of contacts in Address Book + number of groups in Address Book. I am not sure exactly what those special group contacts are, but if Davdroid does not support them, it could at least hide them/filter them out?

  • developer

    As far as I know, there are no “group contacts” in VCard so there’s no reason to filter them out. Please post details about how these VCards look (see logs).

  • This is a card for GroupName group.

    PRODID:-//Apple Inc.//AddressBook 6.1.3//EN

  • developer

    @mitar This is a normal VCard with name “GroupName”. There’s no reason why a CardDAV client shouldn’t sync this.

  • But what it helps if it shows me in the contacts as a normal contact and no group? So yes, DavDroid should sync this, but then display this as a group inside Android contacts and as a person contact. So if DavDroid does not use those as groups, it should not show them in contacts, no?

  • developer

    So yes, DavDroid should sync this, but then display this as a group inside Android contacts and as a person contact.

    Groups are not supported at the moment.

    So if DavDroid does not use those as groups, it should not show them in contacts, no?

    Right, but the VCard you posted is not a group. It’s a VCard for a person with name (N) “GroupName” and full name (FN) “GroupName”. Maybe it can be interpreted as a group by parsing X-ADDRESSBOOKSERVER-, but as these are X- fields it’s not required.

  • I understand it is not required, but it could be nice to support card iCal generates? So this is what iCal pushes to Baikal which DavDroid then reads. We can pretend that everybody does everything by the standard or we can have special cases for - special cases. So for those special cards which are generated by iCal, there is completely no need to have them be shown as (empty) persons (with only name). It does not help, it is not useful, it clutters.

  • I’d have to say, this functionality has really hindered my adoption of owncloud / davdroid - a lot of my workflow works around groups for contacts. As such, this really is an essential feature.

  • Would there be any way to integrate the needed changes into projects such as OmniROM? I could see this being a massive boost to both the ROM and DavDroid…

  • I’m new to syncing Contacts using CardDAV, but I stumbled across the “groups problem” while testing some different apps. Using “ContactSync” the groups are showing up and one can assign people to different groups directly on the phone as well as create new groups before assigning people (Android 4.4.2).
    It is not possible to change the group name, create new groups in the group view (only possible for the Google account in my case) or add new contacts to these groups "the Google way "by entering the group dialog and adding them by name. The only GUI option for groups is “Delete” which seems to work (the group disappears), but the contacts can still be reassigned to this group from the contact editing screen, but the group won’t show up again. Syncing again leads to a new group with identical name (so it looks OK, but it is not).
    So everything looks like rfc2822 said before: There is some support when they are synced, but the GUI is very limited/misbehaving in managing these groups, which is very sad 😞 But even despite of these limitations it is good to have at least some functionality which enables you to use groups at all. So Google should fix/fully enable that somehow?

  • Hi,

    the missing group sync functionality for me is also the “showstopper” to use davdroid/owncloud. I tested carddav sync, and it worked very well - ok, no modification of groups and membership on the phone is possible, but at least groups appear on the phone and you can easy organize your contacts (assign contacts to groups in owncloud and use it on the phone). Every once in a while i am checking, if davdroid has implemented the feature of syncing groups (just one-way would be fine for me), but sadly there is no progress on this.

    I had a bluetooth issue with my galaxy nexus (like lots others too) - and i can tell you, that Google is not interested at all on fixing bugs!! So we should make the best out of it and implement one-way sync of groups at least. I would be very very happy if davdroid could provide this feature in the near future, since i like open-source projects more than closed source (like carddav sync / dmfs).

    I could help as “tester” if some help is needed for implementation.

  • developer


    but sadly there is no progress on this.

    I have just adopted HttpComponents 4.3.2 for Android which took more than a few hours, prepared an automatic settings updater to prepare for well-known URI support (which will also bring iCloud support!), but there are bugs everywhere. For instance, I had to report that Multiple, comma-separated challenges in WWW-Authenticate are not recognized and discuss whether this should be implemented or not (because it would possibly break non-standards-compliant Microsoft NTLM cr*p).

    My next goals are to migrate to the new HTTP library completely, then provide support for redirections (#83, #156) which is required for well-known URI support. After well-known URI support, there’s #76, #34 and #3.

    You see, there is much work to do, and even if we have it in the stores for a small fee, it’s still an open-source project and I have other work too (for a living).

    So please, be either patient or provide (after discussing and announcing it here) high-quality pull requests. Don’t get me wrong, I’ll have a look at this issue, but our priorities are clear, and the next priority milestone is well-known URI support.

  • developer

    Since 1e2051038c1e71cd16e21676051741c2c078d7f5, the CATEGORIES field will at least be retained when updating contacts.

  • developer

    While DAVdroid now syncs CATEGORIES, the problems with the various Android Contacts apps persist, see:

  • thanks for this enhancement!
    it looks like that even the stock ‘contacts’ app (android 4.4.4) doesn’t support categories.

  • I see some groups information being exchanged, but only stuff I’ve very recently changed. My presumption is that contacts modified after the new version of DAVdroid came out have their group information updated, but others don’t.

    Is that a reasonable assumption, and is there a simple way to re-sync everything? (Of course I could delete and re-add the account, but if there were a faster solution that would be ideal.)

  • @dper See the release notes:

    Important: if you use CATEGORIES, please make sure that the contacts
    are read from the server again (either by changing them all, for instance
    by assigning other categories or by adding the account again).

  • @rfc2822 Thank you very much for this DAVdroid extension! It works well as expected. I would say that DAVdroid is now perfect 🙂

    However, you should think about how to deal with groups that are deleted on the server. At the moment, a deleted group remains as empty group on the phone forever.

    Another possibility would be to delete all empty groups (that where created by DAVdroid) after synchronization. The problem is that you have to avoid the deletion of a group, that is newly created by the user with a respective app before the user adds an account to the new group (this could be a long time so that a synchronization may happen between). However, you could store something in a sync field for the group whenever DAVdroid creates a group on synchronization. Then DAVdroid could only delete empty groups which have this information in the sync field.

Similar topics