nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
565 stars 171 forks source link

Support Mac groups vCards #213

Open nalt opened 7 years ago

nalt commented 7 years ago

Steps to reproduce

  1. Setup CardDAV Sync in MacOS
  2. Create a group in MacOS Contact app

or

  1. Create a group in Nextcloud

Expected behaviour

Groups created in Contacts app should appear as groups in Nextcloud. Groups created in Nextcloud should appear as groups in Contacts app.

Actual behaviour

A group created in Contacts app appears as a normal contact in Nextcloud. Nextcloud groups are not represented in Contacts app.

Server configuration

Operating system: Nextcloud official Docker

Web server: Nginx Proxy

Database: MariaDB

Nextcloud version: 11.0.3

Contacts version: 1.5.3

Updated from an older Nextcloud or fresh install: Updated, but contacts cleared

Client configuration

Operating system: MacOS 10.12.4

CardDAV-clients: MacOS Contacts app

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45126600-support-mac-groups-vcards?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github).
EddyLB commented 7 years ago

Same issue with Nextcloud 12

Server configuration

Operating system: Debian GNU/Linux 8.8 (jessie) x86_64

Web server: Apache/2.4.10 (Debian) (apache2handler)

Database: mysql 5.5.55

PHP version: 5.6.30-0+deb8u1 Modules loaded: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, apcu, curl, gd, imagick, intl, json, mcrypt, memcache, mysql, mysqli, pdo_mysql, pdo_sqlite, pspell, readline, recode, sqlite3, tidy, xmlrpc, xsl, mhash, apc, Zend OPcache

Nextcloud version: 12.0.0 - 12.0.0.29

Are you using external storage, if yes which one: files_external is disabled

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.1 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.1

Operating system:

Updated from an older Nextcloud/ownCloud or fresh install: Updated from last release of NextCloud 11

List of activated apps:

App list ``` Enabled: - activity: 2.5.2 - bruteforcesettings: 1.0.2 - calendar: 1.5.3 - comments: 1.2.0 - contacts: 1.5.3 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_pdfviewer: 1.1.1 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - issuetemplate: 0.2.1 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notifications: 2.0.0 - oauth2: 1.0.5 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0 Disabled: - admin_audit - encryption - files_external - gallery - user_external - user_ldap ```
skjnldsv commented 7 years ago

Could you create a new contact on your Mac and sync it to nextcloud, then export it from nextcloud and post the result here please.

irgendwie commented 7 years ago

Afaik MacOS (and/or Apple in general) stores groups as vcards and not as property in a vcard, like we do it in the contacts app. When configuring davDroid (for Android) you can choose between those two options, I'm not sure if this is also possible for apple products.

skjnldsv commented 7 years ago

If we want to implement this, this won't be a priority then :/

EddyLB commented 7 years ago

Hi @skjnldsv, I've created a group "macOS" and a contact in that group. As expected, mac OS Contacts creates 2 cards:

After syncing with Nextcloud, I get two non-grouped new cards (attached). It would really be great that the Nextcloud Contacts app accepts X-ADDRESSBOOKSERVER-KIND as well as KIND for identifying vCard representing a group of persons or entities.

Group macOS.vcf.txt Contact In macOS Group.vcf.txt

skjnldsv commented 7 years ago

Isn't there an option to change this behavior on Mac?

EddyLB commented 7 years ago

On macOS 10.12, the user can choose between the vCard formats 2.1 and 3.0 (and the vCard encoding format for 2.1). He/she can also enable/disable the export of notes and photos in vCards and the use of a private me card.

As shown for example here, the property KIND is not supported in 3.0 (only in 4.0).

nalt commented 7 years ago

MacOS does not have option to change how the vCard are synced. Even if there was a hack via some config file, this would not be user-friendly at all. Their solution corresponds to the KIND/MEMBER fields of vCard 4.0, without breaking the older standards. So the logic is the same as in the 4.0 standard.

How does Nextcloud store groups - as a name in the Categories field? What would happen, if a vCard 4.0 using the standardized KIND/MEMBER fields is sent?

I would assume the version option exposed to the user only affects the export functionality.

aluxnimm commented 7 years ago

We support iCloud contact groups with X-ADDRESSBOOKSERVER-KIND:group also now for mapping Outlook Distribution Lists to contact groups in OutlookCalDavSynchronizer

So would be really useful if the contact app could show the members of the group for a better Nextcloud and Outlook integration! Now the group is only visible as a normal contact with the name of the group and no members but atleast can be synced back to (another) Outlook or macOS instance.

skjnldsv commented 7 years ago

Let's go! Adding this to the 2.1 milestone! We'll try implementing that!

nalt commented 6 years ago

Great! Do you have a plan already how to handle this vCard "dialect" and potential other ones?

sushidave commented 6 years ago

FYI - The same issues exists for ownCloud: #455, #475

Woi commented 6 years ago

Maybe nice to know: DAVdroid has a nice comparison table of both methods. They also document the limited group support in nextcloud app.

chrsch commented 6 years ago

@skjnldsv Did you have any success with this? Is it still ongoing or stale?

skjnldsv commented 6 years ago

It's still ongoing. Can some of you try a vcard 4 group with the real KIND and not X-ADDRESSBOOK-KIND property on mac to see if it works?

dphi commented 6 years ago

Hi @skjnldsv, is does not work for me with the following adjustments:

Original:

VERSION:3.0 PRODID:-//Apple Inc.//AddressBook 11.0//EN N:Test-Group;;;; FN:Test-Group X-ADDRESSBOOKSERVER-KIND:group X-ADDRESSBOOKSERVER-MEMBER:urn:uuid:909c0bfb-9a8b-4514-b7d4-0b41ba7b11d2 REV:2018-04-07T20:45:06Z UID:b450093e-e90c-45f6-8bd4-3b91facd123 END:VCARD

Adjustment:

VERSION:3.0 PRODID:-//Apple Inc.//AddressBook 11.0//EN N:Test-Group;;;; FN:Test-Group KIND:group MEMBER:urn:uuid:909c0bfb-9a8b-4514-b7d4-0b41ba7b11d2 REV:2018-04-07T20:45:06Z UID:b450093e-e90c-45f6-8bd4-3b91facd123 END:VCARD

skjnldsv commented 6 years ago

Strangely enough, KIND/MEMBER are supposed to be supported for v4+ only :) I guess we'll try to add a support for both then.

aluxnimm commented 6 years ago

Yes a vcard with VERSION:3.0 is not valid with KIND/MEMBER, that's the reason for X-ADDRESSBOOKSERVER prefix. Only with VERSION:4.0 KIND/MEMBER are allowed, so the adjustment above is an invalid vcard. You really should support both, since there is no support for v4+ cards in many clients/servers.

macbaydigital commented 5 years ago

Hi, since I'd love to see this feature implemented, I'd like to help by testing with NC (latest version that I can install via Softaculous on my cPanel) in conjunction with two mac clients: Contacts.app on Mac OSX 10.11 (El Capitan) and macOS 11.13 (High Sierra)

What is the recommended testing procedure? I assume to connect NC CardDAV with both clients and then add a contact on each client and on NC, then create a group on each client and on NC, then sync them all and post the result here?

Whatever makes sense to contribute, please let me know. I will be gladly helping here as a tester with the above mentioned Mac-clients :-)

skjnldsv commented 5 years ago

Hey @sushinger :) We do not require testing yet because this feature is not implemented yet and will require a lot of changes on the server.

Nonetheless, we'd gladely need help when we'll start working on this ;)

foux commented 5 years ago

Whenever you need tester, I'll be available too ;)

skjnldsv commented 5 years ago

You folks are amazing! :D

pagaille commented 5 years ago

Just chiming in to tell you that Busycontacts also expect the server to support cards with X-ADDRESSBOOKSERVER-KIND:group... As does eM Client.

Aesculapius commented 5 years ago

So as I understand it this feature is needed to allow regular clients like emClient to display groups/categories correctly? That's quite a missing feature at the moment... Is there any roadmap about when this could be implemented?

skjnldsv commented 5 years ago

Process:

alesf commented 4 years ago

Is it possible that something changed in iOS 13 (possible even on macOS Catalina - not tested) on how groups are handled? All of the group vcards that have X-ADDRESSBOOKSERVER-KIND:group are shown as contacts and do not show in the groups.

docbobo commented 4 years ago

Here's what I am seeing:

microfx commented 4 years ago

Any news on this? I have a lot of contacts not showing up which should show up in contacts.app on macOS Catalina.

skjnldsv commented 4 years ago

@microfx as you can see in the first post, no progress has been made. I have other priorities and no other dev started working on it :)

microfx commented 4 years ago

Thanks for letting me know. This is a pretty severe problem imho since it makes nextcloud not usable for a team and shared contact groups in an Apple ecosystem right now. So if there is a manual workaround it would be very nice to know.

Or do I misunderstand this issue - could you shortly explain what groups vCards are? My problem is that not all contacts are shown on iOS which were shared from another user/group in nextcloud.

Am 02.01.2020 um 10:15 schrieb John Molakvoæ notifications@github.com:

 @microfx as you can see in the first post, no progress has been made. I have other priorities and no other dev started working on it :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

pagaille commented 4 years ago

That’s because there are two ways of creating groups. Basically there is the Apple way and the Google / Android way. Nextcloud (actually the underlying SabreDAV library) supports only the Android way. It’s a shame since if I’m not mistaken Apple follows the RFC much closer.

The only workaround I found for OSX is buying Busycontacts https://www.busymac.com/busycontacts/ which IMHO is pretty much worth the value. They also had problems supporting Nextcloud but issued a fix quickly after I asked them to look into this problem. NB : I’m not affiliate with them in any way 😊

On 2 Jan 2020, at 12:49, microfx notifications@github.com wrote:

Thanks for letting me know. This is a pretty severe problem imho since it makes nextcloud not usable for a team and shared contact groups in an Apple ecosystem right now. So if there is a manual workaround it would be very nice to know.

Or do I misunderstand this issue - could you shortly explain what groups vCards are? My problem is that not all contacts are shown on iOS which were shared from another user/group in nextcloud.

Am 02.01.2020 um 10:15 schrieb John Molakvoæ notifications@github.com:

 @microfx as you can see in the first post, no progress has been made. I have other priorities and no other dev started working on it :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AAOMUTZDS7CPGJIJMPMOGLTQ3XIENA5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6FTRY#issuecomment-570186183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOMUTYWSYM5ZJFABWYVKZ3Q3XIENANCNFSM4DLE5KYQ.

SuperSandro2000 commented 4 years ago

@pagaille Apple way: pay 50 bucks to fix a problem.

pagaille commented 4 years ago

@SuperSandro2000 : Google way : do things their own way and claiming that they use open standards. The same goes for their very personal IMAP protocol implementation with gmail BTW.

microfx commented 4 years ago

Android is not even supporting Nextcloud natively ...at least not the calendar. I don't get why Nextcloud is doing anything the "android way" if that protocol is more or less from apple (isn't it?).

That app doesn't look like I wanted to use it. And 50 Bucks for an app I don't like is too much.

Am 02.01.2020 um 14:19 schrieb Matthieu notifications@github.com:

 That’s because there are two ways of creating groups. Basically there is the Apple way and the Google / Android way. Nextcloud (actually the underlying SabreDAV library) supports only the Android way. It’s a shame since if I’m not mistaken Apple follows the RFC much closer.

The only workaround I found for OSX is buying Busycontacts https://www.busymac.com/busycontacts/ which IMHO is pretty much worth the value. They also had problems supporting Nextcloud but issued a fix quickly after I asked them to look into this problem. NB : I’m not affiliate with them in any way 😊

On 2 Jan 2020, at 12:49, microfx notifications@github.com wrote:

Thanks for letting me know. This is a pretty severe problem imho since it makes nextcloud not usable for a team and shared contact groups in an Apple ecosystem right now. So if there is a manual workaround it would be very nice to know.

Or do I misunderstand this issue - could you shortly explain what groups vCards are? My problem is that not all contacts are shown on iOS which were shared from another user/group in nextcloud.

Am 02.01.2020 um 10:15 schrieb John Molakvoæ notifications@github.com:

 @microfx as you can see in the first post, no progress has been made. I have other priorities and no other dev started working on it :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AAOMUTZDS7CPGJIJMPMOGLTQ3XIENA5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6FTRY#issuecomment-570186183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOMUTYWSYM5ZJFABWYVKZ3Q3XIENANCNFSM4DLE5KYQ.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

spoorun commented 4 years ago

This discussion seems a bit confusing, correct if this is wrong, but it doesn't seem that Android [EDIT: Android adapters, since of course Android doesn't support vCard at all] are failing to following the protocol (for vCard 3), Apple in our view are less than Android [adapters] it appears, using X - properties.

In any case, vCard 4 fully supports both: a) CATEGORIES (which are to be used as tags/labels and not to be used for group contacts) and b) KIND: GROUP (which creates an entity connecting the various entities).

SabreDav supports both when using vCard 4(?) Apple and it's adapters appears to support both, when using vCard 4(?) (other than older MacOS systems). EDIT: Android (via it's third party adapters) appears to support both, [but the user has to choose which approach - a or b] when using vCard 4(?) Other systems are patchy (Linux, Windows third party software).

So, IF the above is correct, it seems this issue relates only the vCard 3 systems, or a failure to properly deal with vCard 4 in up-to-date systems. For example: https://github.com/nextcloud/contacts/issues/4038 ?

microfx commented 4 years ago

It would be nice if my problem wasn't related to this issue.

What I found out so far:

If I create in contacts.app in macOS Catalina (latest) a group in nextcloud a new contact with that name gets created.

I cannot reconstruct which groups are being synced to my contacts.app (it's definitely a mixture somehow...) but syncing both ways works with those that are there.

Also I guess I have somehow mixed up the words groups and addressbooks maybe. Still don't know how to use them properly tbh. But the protocol seems to not now this either.

Any idea what I could try? I have shared addressbooks in nextcloud - I think somewhere there lies the culprit.

Am 05.01.2020 um 21:47 schrieb Olan Trust notifications@github.com:

This discussion seems a bit confusing. I don't think Android are not following the protocol (for vCard 3), Apple in our view are less than Android it appears, using X- properties.

In any case, vCard 4 fully supports both a) CATEGORIES (which are to be used as tags/labels and not to be used for group contacts) and b) KIND: GROUP (which creates an entity connecting the various entities).

SabreDav supports both when using vCard 4(?) Apple and it's adapters appears to support both, when using vCard 4(?) Android and it's adapters (such as also appears to support both, when using vCard 4(?)

If that is correct, this issue relates only the vCard 3. Or to the vCard 4 where Nextcloud (or other software) incorrectly changes contacts to vCard 3.

Theoretically, an up-to-date system shouldn't suffer from this issue (unless they're using some software on Windows or Linux desktop, or an old Mac OS)?

That's not to belittle the issue, but just wondering whether there is another problem here - the unwanted conversion to vCard 3 for example here: nextcloud/contacts#4038 https://github.com/nextcloud/contacts/issues/4038 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AJB2HDGFVQBSA5R27DVP5LLQ4JBM7A5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEID7EVQ#issuecomment-570946134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDCO6SLAZMDO5D7KQZDQ4JBM7ANCNFSM4DLE5KYQ.

spoorun commented 4 years ago

@microfx do you have the text of a test contact vcf file - for the group and individual contacts?

Also, from what I can read, your issue seems to relate to contacts not showing in iOS, not in Nextcloud or MacOS, is that correct? Also what version of iOS are you using?

Thanks

It would be nice if my problem wasn't related to this issue. What I found out so far: If I create in contacts.app in macOS Catalina (latest) a group in nextcloud a new contact with that name gets created. I cannot reconstruct which groups are being synced to my contacts.app (it's definitely a mixture somehow...) but syncing both ways works with those that are there. Also I guess I have somehow mixed up the words groups and addressbooks maybe. Still don't know how to use them properly tbh. But the protocol seems to not now this either. Any idea what I could try? I have shared addressbooks in nextcloud - I think somewhere there lies the culprit. Am 05.01.2020 um 21:47 schrieb Olan Trust @.***>: This discussion seems a bit confusing. I don't think Android are not following the protocol (for vCard 3), Apple in our view are less than Android it appears, using X- properties. In any case, vCard 4 fully supports both a) CATEGORIES (which are to be used as tags/labels and not to be used for group contacts) and b) KIND: GROUP (which creates an entity connecting the various entities). SabreDav supports both when using vCard 4(?) Apple and it's adapters appears to support both, when using vCard 4(?) Android and it's adapters (such as also appears to support both, when using vCard 4(?) If that is correct, this issue relates only the vCard 3. Or to the vCard 4 where Nextcloud (or other software) incorrectly changes contacts to vCard 3. Theoretically, an up-to-date system shouldn't suffer from this issue (unless they're using some software on Windows or Linux desktop, or an old Mac OS)? That's not to belittle the issue, but just wondering whether there is another problem here - the unwanted conversion to vCard 3 for example here: nextcloud/contacts#4038 <nextcloud/contacts#4038> — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#213?email_source=notifications&email_token=AJB2HDGFVQBSA5R27DVP5LLQ4JBM7A5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEID7EVQ#issuecomment-570946134>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDCO6SLAZMDO5D7KQZDQ4JBM7ANCNFSM4DLE5KYQ.

microfx commented 4 years ago

in iOS 13 everything works fine - it's just macOS which is not working as expected (broken as in not showing all shared addressbooks / contacts I can see in iOS or of course in nextcloud).

iOS 13 and macOS 10.15

Am 05.01.2020 um 22:44 schrieb Olan Trust notifications@github.com:

@microfx https://github.com/microfx do you have the text of a test contact vcf file - for the group and individual contacts?

Also, from what I can read, your issue seems to relate to contacts not showing in iOS, not in Nextcloud or MacOS, is that correct? Also what version of iOS are you using?

Thanks

It would be nice if my problem wasn't related to this issue. What I found out so far: If I create in contacts.app in macOS Catalina (latest) a group in nextcloud a new contact with that name gets created. I cannot reconstruct which groups are being synced to my contacts.app (it's definitely a mixture somehow...) but syncing both ways works with those that are there. Also I guess I have somehow mixed up the words groups and addressbooks maybe. Still don't know how to use them properly tbh. But the protocol seems to not now this either. Any idea what I could try? I have shared addressbooks in nextcloud - I think somewhere there lies the culprit. … <x-msg://1/#> Am 05.01.2020 um 21:47 schrieb Olan Trust @.***>: This discussion seems a bit confusing. I don't think Android are not following the protocol (for vCard 3), Apple in our view are less than Android it appears, using X- properties. In any case, vCard 4 fully supports both a) CATEGORIES (which are to be used as tags/labels and not to be used for group contacts) and b) KIND: GROUP (which creates an entity connecting the various entities). SabreDav supports both when using vCard 4(?) Apple and it's adapters appears to support both, when using vCard 4(?) Android and it's adapters (such as also appears to support both, when using vCard 4(?) If that is correct, this issue relates only the vCard 3. Or to the vCard 4 where Nextcloud (or other software) incorrectly changes contacts to vCard 3. Theoretically, an up-to-date system shouldn't suffer from this issue (unless they're using some software on Windows or Linux desktop, or an old Mac OS)? That's not to belittle the issue, but just wondering whether there is another problem here - the unwanted conversion to vCard 3 for example here: nextcloud/contacts#4038 https://github.com/nextcloud/contacts/issues/4038 <nextcloud/server#12878 https://github.com/nextcloud/contacts/issues/4038> — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#213 https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AJB2HDGFVQBSA5R27DVP5LLQ4JBM7A5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEID7EVQ#issuecomment-570946134>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDCO6SLAZMDO5D7KQZDQ4JBM7ANCNFSM4DLE5KYQ https://github.com/notifications/unsubscribe-auth/AJB2HDCO6SLAZMDO5D7KQZDQ4JBM7ANCNFSM4DLE5KYQ.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AJB2HDE5K7VMNOGF5WQUM7LQ4JIEHA5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEAKAI#issuecomment-570950913, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDDLAP32ZDLZEJ26HO3Q4JIEHANCNFSM4DLE5KYQ.

plinss commented 4 years ago

Just to be clear, using macOS Catalina (10.15) and iOS 13.3:

microfx commented 4 years ago

no. iOS is all fine. macOS is the problem.

Am 06.01.2020 um 00:22 schrieb Peter Linss notifications@github.com:

Just to be clear, using macOS Catalina (10.15) and iOS 13.3:

You can create groups in the Contacts app on the Mac, there is no way to create groups on iOS (that I know of). These groups work and sync as expected on the Mac and iOS, however they show up in the Nextcloud Contacts app as a contact, not a group.

If you create groups in the Nextcloud Contacts app, those groups do not show up on either the Mac Contacts app or iOS.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AJB2HDHKIKVE22ACLCALTM3Q4JTSJA5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIECHFY#issuecomment-570958743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDCO3Y5QETHORN7N3TTQ4JTSJANCNFSM4DLE5KYQ.

plinss commented 4 years ago

no. iOS is all fine. macOS is the problem.

I beg to differ, I just created a group in the Nextcloud Contacts app, and it does not show up on iOS.

microfx commented 4 years ago

are we talking about nextcloud user groups here? which then named shared addressbooks? because that is what I am using / having problems with (only macOS!).

Am 06.01.2020 um 00:27 schrieb Peter Linss notifications@github.com:

I beg to differ, I just created a group in the Nextcloud Contacts app, and it does not show up on iOS.

plinss commented 4 years ago

are we talking about nextcloud user groups here? which then named shared addressbooks? because that is what I am using / having problems with (only macOS!).

I am not. I am taking about contact groups created in the contacts apps, these are different than Nextcloud user groups and also different than having multiple address books.

This issue is about contact groups, iOS and macOS store contact groups as a type of vCard, where the Nextcloud Contacts app does not recognize those vCards as groups and displays them as a contact. Furthermore the Nextcloud Contacts app stores group information in the contact's vCard, which neither macOS or iOS recognize.

It sounds like you are creating different address books entirely and sharing those among Nextcloud user groups, which is fine. When you create multiple address books in Nextcloud, iOS Contacts represents those visually the same way that it does contact groups, so this is where you're likely getting confused, but they are distinct concepts in the way the data is stored.

macOS Contacts app does not appear to recognize multiple address books, which is the problem you are facing.

Try creating a group in the macOS Contacts app and drag one of your contacts into that group, you'll see the issue.

microfx commented 4 years ago

a few posts above I described what happens when I create a group in macOS - the group will show up as a contact in nextcloud.

Thanks for enunciating my issue.

Am 06.01.2020 um 00:52 schrieb Peter Linss notifications@github.com:

are we talking about nextcloud user groups here? which then named shared addressbooks? because that is what I am using / having problems with (only macOS!).

I am not. I am taking about contact groups created in the contacts apps, these are different than Nextcloud user groups and also different than having multiple address books.

This issue is about contact groups, iOS and macOS store contact groups as a type of vCard, where the Nextcloud Contacts app does not recognize those vCards as groups and displays them as a contact. Furthermore the Nextcloud Contacts app stores group information in the contact's vCard, which neither macOS or iOS recognize.

It sounds like you are creating different address books entirely and sharing those among Nextcloud user groups, which is fine. When you create multiple address books in Nextcloud, iOS Contacts represents those visually the same way that it does contact groups, so this is where you're likely getting confused, but they are distinct concepts in the way the data is stored.

macOS Contacts app does not appear to recognize multiple address books, which is the problem you are facing.

Try creating a group in the macOS Contacts app and drag one of your contacts into that group, you'll see the issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nextcloud/contacts/issues/213?email_source=notifications&email_token=AJB2HDGTMWV6DOAMBX7352TQ4JXFHA5CNFSM4DLE5KY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEC3ZA#issuecomment-570961380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB2HDGZ5UE2IF3DQMCDSGLQ4JXFHANCNFSM4DLE5KYQ.

alesf commented 4 years ago

This has already been discussed above (see https://github.com/nextcloud/contacts/issues/213#issuecomment-318271683)

I try to add necessary information to a group vCard so all clients can understand and group contacts.

Group vCard:

VERSION: 3.0
FN: Group Name
N: Group Name
UID: group-uuid-XXXX
X-ADDRESSBOOKSERVER-KIND: group
KIND: group

Contact vCards that belong to this group also have these fields:

X-ADDRESSBOOKSERVER-MEMBER: urn:uuid:group-uuid-XXXX
MEMBER: urn:uuid:group-uuid-XXXX
CATEGORIES: Group Name, ...
skjnldsv commented 4 years ago

same as https://github.com/nextcloud/contacts/issues/609

nalt commented 4 years ago

Please keep this issue open until the bug is fixed. nextcloud/server#609 describes a feature, doesn't mention any details about the bug.

Duckbilled commented 4 years ago

On iOS 14, groups created in Nextcloud do not show up either. I am not using MacOS 11 so cannot test that. Like others said, contacts created on MacOS 10.15 show up as contact cards and dissapear as soon as I select them on Nextcloud.

kittonian commented 4 years ago

I've read through all of the above and I'm seeing different behavior. On Mac OS High Sierra, I can create a contact group and I see nothing in the web gui. However, I see that group across the desktop and iOS Apple clients on the LAN. Some of the desktops are High Sierra and others are the latest Catalina. All iOS devices are running the latest version.

If I create and/or delete a group, all devices update themselves, but nothing is populated in the groups. Except for the initial system where the contact group was created and various contacts were added to the group, all other devices show the group but the group is empty.

I have tried creating the group via the web gui (doesn't show up on any Apple devices), via other Mac OS desktops (group shows up properly across all devices but is empty), etc. It's consistently the same behavior. The groups show and disappear properly but they are always empty (i.e. nothing is sync'ing inside the groups).

We are running Debian, PHP 7.4.8, and the latest Nextcloud (19.x).

EddyLB commented 3 years ago

This issue is opened for almost 3 years and I regret very much that it is still impossible to sync groups with Apple devices. After having created a group and added cards into that new group on a macOS device synced with a NextCloud server 18, the group with its cards shows up on iOS devices. But the NextCloud Calendars app still shows the group as a card.