CalDAV / CardDAV not working

REPRODUCIBILITY: idk
OS VERSION: 4.5.0.21 (official Sailfish X)
HARDWARE: Xperia XA2 DS
UI LANGUAGE: HU
REGRESSION: idk

DESCRIPTION:

I have an iCloud account where I have all of my contacts and calendar everts. I can’t access them from my phone.

PRECONDITIONS:

idk

STEPS TO REPRODUCE:

  1. Select generic account in the accounts settings.
  2. Fill the required informations.
  3. Try to log in.

EXPECTED RESULT:

Being able to sync to iCloud.

ACTUAL RESULT:

Unable to connect to iCloud

MODIFICATIONS:

idk

ADDITIONAL INFORMATION:

I found a solution on the old forum, doesn’t work to me.

Could you please add which server settings you enter, and which DAV paths?

I don’t have an icloud account to test but for cards, does this work?

https://contacts.icloud.com:443/<YOUR UNIQUE Apple USER_ID>/carddavhome/card/

Also you likely need to create an application-specific password in iCloud, according to e.g. this

The solution I linked is basically the same as the one on that site and it didn’t work to me.
The link format isn’t working either.
I tried that link format. It doesn’t give me an error message at least. But it stuck at “creating account”.

@usbee Did you manage to get CalDAV / CardDAV working eventually? I succeeded in configuring CalDAV (calendar) but CardDAV (contacts) gives me an headache. I tried contacts.icloud.com and the solution provided by @nephros combined with an app-specific password for iCloud but not success. Authentication fails because of a /.well-known issue.

Can’t figure out if I’m doing something wrong or it is an issue with the CardDAV implementation of Sailfish. CardDAV / CalDAV implementation of iCloud is not documented at all by Apple.

Anyone got CalDAV / CardDAV with iCloud working?

Hi! I no longer use SFOS for a while, so I don’t know if it’s any better since then.

Update: I tried setting up Fastmail and it didn’t work there either.

Also I’m still not sure what server address supposed to be since none of the online tutorials has this, only address for CalDAV and CardDAV.

The CalDAV/CardDAV account works for me since 2014 with pure nextcloud. Maybe your special provider has special settings. For me I have to enter:

WebDAV: https://your-fancy-server/remote.php/dav/files/username

CardDAV: n/a, see below

CalDAV: https://your-fancy-server/remote.php/dav/calendars/username

Today I found in setting for CalDAV only “/remote.php/dav/calendars/username” but I believe you have to enter the whole thing. For CardDAV your have to find the replacement for “calendars” here.

All this will only work if it is enabled on server side. Of course.

My “special provider” works perfectly with Thunderbird on desktop and on Android too.

Maybe Jolla’s own CalDAV/CardDAV implementation is incomplete or buggy? Since there are multiple providers that aren’t working nicely with SFOS while working just fine on Thunderbird for example.

Could you please mention who the provider is. Then we can at least track down what the endpoints are and so on. I’ve been running caldav/cardav for years both with my own front end (php hack against apache’s modules) and in the last years with nextcloud. Both setups have slightly different endpoints and that often seems to be the issue.

Oh, “special provider” means special tricks. The fastmail help page shows that CalDAV is not supported. You have to use the account type “online calendar” or what it is called in englisch. This type syncs withs ics-files.

I tried both with iCloud and Fastmail. Setting up e-mail was possible with Fastmail but setting up CalDAV/CardDAV wasn’t. For some reason only SFOS has this issue as I was able to set up Fastmail on my iPad, on my Pixel phone and on my Linux laptop too.

i’m not sure where you got that information since How to synchronize a calendar – Fastmail seems to suggest caldav protocol syncing.

For what it’s worth, the jolla implementation works fine against ‘reference servers’ like those from the apache foundation. But there’s always special sauce.

They do support it. I’m able to use it on the following devices and configurations:

  • Thunderbird’s built in calendar and contacts works both on Debian and Pop!_OS.
  • iPadOS’ built in calendar, mail app, even notes app works well with it.
  • Fossify Calendar, Contacts and Phone app works too via DAVx5 with no issue.

So Fastmail clearly provides access to contacts, calendars and even notes through CalDAV/CardDAV protocol as I can use them day to day on different devices and OSes.

For Fastmail, only IMAP/SMTP needs a special dedicated password for each app, CalDAV/CardDAV doesn’t need that, so it’s not the issue either.

For CardDav I found this on the fastmail help:

This page shows the complete url in two parts. It must not to easy for mac users!

For CalDAV I found only

and this is dealing with .ics files.

But I’m not sure I have to read the docs (complete).

I’m just reading Using Fastmail with CalDAV libraries | utf9k which indicates there is the (all too common) issue with domain names, urls and auto-discovery. auto-discovery is NOT implemented by the sfos libraries.

This post indicates that fastmails is using cyrus (been there) and that is a full fledged caldav server.

The url form seems to be https://caldav.fastmail.com/dav/principals/user/user@example.com/

This problem is SO common, I’ve dealt with it dozen’s of times in the last 25 years. I dunno. But, I’m fairly confident that sfos can use freemail. The reason that thuderbird ‘just works’ is that it uses auto discovery.

Cyrus stores calendars as .ics files in imap folders. It’s a ‘feature’. There are a number of ‘complete service’ mail solutions that do the same thing.

I was able to set it up on three very different type of devices, idk why you need that attitude.

Now the question is what url am I supposed to put into “WebDAV/server/whatever url”? Since no other app or system besides SFOS asks for it. On every device I ever set up Fastmail the address of CalDAV and CardDAV was well enough. None of them asked for a third url.