nextcloud / contacts

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

Allow custom events with X-ABDATE property #223

Open NeverWise opened 7 years ago

NeverWise commented 7 years ago

Google uses X-ABDATE extension in its vcard on gmail to manage generic dates (events). The format is the same and already managed, for the phone number, by nextcloud.

phone number e.g. (working) item1.TEL:0123456789 item1.X-ABLABEL:foo

X-ABDATE e.g. (not working) item2.X-ABDATE:1997-10-02 item2.X-ABLABEL:bar

If I export a contact from google and import it in nextcloud, the X-ABDATE information remain in the vcard but isn't shown in the frontend. I think it would be nice to be able to see this information.

It is also possible to import it into android by using the specific extension: X-ANDROID-CUSTOM:vnd.android.cursor.item/contact_event;1997-10-02;0;bar;;;;;;;;;;;; This extension works from android 4 to 7. I personally tested it.

I hope you decide to implement this extension.

Cheers

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45728188-allow-custom-events-with-x-abdate-property?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).
spoorun commented 5 years ago

Better to rename this 'Allow custom events'? This might avoid further duplicates being created :D

DavidMndz commented 4 years ago

I can see the same problem. I have some contacts with multiple custom dates and once I sync my contacts to Nextcloud these fields are lost in Nextcloud.

I compared the output from Android and the otuput of Nextcloud contacts and this part is missing in Nextcloud:

X-ANDROID-CUSTOM:vnd.android.cursor.item/contact_event;1997-10-02;0;bar;;;;;;;;;;;;

I am using Contacts 3.2.0.

doits commented 3 years ago

:+1: just noticed my contacts lost some dates. Migration was done about one year ago and I switched phones after this already and contacts synced back from nextcloud without those custom fields, so data seems to be lost :-(

At least it is not possible to add custom dates on the phone now while they are synced to nextcloud with DAVX5, so nothing new can be lost.

DavidMndz commented 3 years ago

👍 just noticed my contacts lost some dates. Migration was done about one year ago and I switched phones after this already and contacts synced back from nextcloud without those custom fields, so data seems to be lost :-(

At least it is not possible to add custom dates on the phone now while they are synced to nextcloud with DAVX5, so nothing new can be lost.

I have just tested in Android and you can only add "Anniversary" field, but you can add more than one, so on your phone you can have the birthday, two different anniversaries but on the Nextcloud side, only the birthday and the last anniversary that was updated are stored.

I am waiting for this enhancement to finally migrate all the contacts to Nextcloud.

doits commented 3 years ago

On my Android 11 phone / Pixel 5 with stock google android I can only add "Birthday" and one "Anniversary" to a nextcloud contact in the regular contacts app. I don't see an option to add more than one anniversary, maybe a different contacts app can do this?

In nextcloud web ui I can add a third date: A "Day of death". It is only displayed in the web ui, not in contacts app.

tribut commented 3 years ago

Samsung's Contact App on Android allows custom events to be added, which use X-ABDATE when synced with DAVx5.

riker09 commented 2 years ago

What needs to be done to add support for this in the web app? As far as I understand it from reading the comments in this issue when I add/change X-ABDATE properties of a contact via Google Contacts app on my phone the data is synced with Nextcloud through DavX, correct? And it's rather an issue of displaying it in the frontend, yes?

brtwrst commented 1 year ago

That seems to be what is happening. Custom dates synchronize between my android devices just fine but are not displayed in Nextcloud.