@acu Works here again, too. I’ll set this to solved.
caldav sync with google doesnt work anymore
-
Hi everbody, having this problem a couple of weeks already and hoped the latest update would solve it. But also with 1.8.1 i can not sync my Google caldav any more.
I am using 2fa, so I created an app password for caldav syncing.
Attached my debug.txt file.
Any ideas how I can solve this?
Thanks,
Nils
-
What’s the problem?
-
the problem is that caldav sync with google doesnt work anymore. See the debug file for details.
Unfortunatly there is no further error message (except for the notification “caldav sync connection error”). Carddav sync works fine in the same account.
-
Same problem for me with f-droid based davdroid. The URL
https://www.google.com/calendar/dav/*My_Google_Username*/events/
works in a browser from the same phone. The log does not make it clear which URL is actually failing. I can also create a new account with that URL and it detects my address book and calendar correctly. It only fails once I actually try to sync. -
Google now requires OAuth as it seems, and we don’t support OAuth in DAVdroid. No other service/server ever needed it…
-
so, there is no solution for Google now?
-
This works for me today (12th September 2018):
For the main calendar of an account and main calendars of another account which is shared with mine:
https://www.google.com/calendar/dav/name@gmail.com/events/This also worked for a “secondary” google calendar (created by “Add calendar” > “New calendar” at calendar.google.com).
https://www.google.com/calendar/dav/s0m37h1ng@group.calendar.google.com/events/In both cases what@ever is what calendar.google.com > “Calendar Settings” report as “Calendar ID”.
According to [1] this caldav endpoint is deprecated, but apparently it still works. Why it does not work for you @bam I can’t say.
[1] https://developers.google.com/calendar/caldav/v2/guide#new_endpoint this
-
@jonascj Thank you for the update! We’ve activated the entry for Google in our “Tested with” section on our website again and are linking to your post. Hopefully it helps some people!
-
Note that you’ll also need to ‘Allow less secure apps’ in your Google account before this will work: https://myaccount.google.com/lesssecureapps
Might be worth noting in the Google entry on your site… -
@bwpanda Thanks, I have added that!
-
@jonascj said in caldav sync with google doesnt work anymore:
This works for me today (12th September 2018):
For the main calendar of an account and main calendars of another account which is shared with mine:
https://www.google.com/calendar/dav/name@gmail.com/events/This also worked for a “secondary” google calendar (created by “Add calendar” > “New calendar” at calendar.google.com).
https://www.google.com/calendar/dav/s0m37h1ng@group.calendar.google.com/events/In both cases what@ever is what calendar.google.com > “Calendar Settings” report as “Calendar ID”.
According to [1] this caldav endpoint is deprecated, but apparently it still works. Why it does not work for you @bam I can’t say.
[1] https://developers.google.com/calendar/caldav/v2/guide#new_endpoint this
11/2/2018: This URL worked, but ONLY retrieved my main calendar: https://www.google.com/calendar/dav/name@gmail.com/events/
I have 2 calendars in my “Other Calendars” list that don’t show up. Any ideas how to make that list show up?
-
@kevin71246 What happens when you explicitly enter one of the specific other calendar URLs when setting up the DAVdroid account? This should work.
-
Rather than lowering your account security for the entirety of your Google account by allowing basic auth, you can simply generate an app password from the Google Security manager:
- Open the security manager: https://myaccount.google.com/security
- Under the “Signing in to Google” section, select “App passwords”
- Generate an app password for DAVx5
- Enter the generated password in the DAVx5 app
-
@Carlin Thanks, have updated https://www.davx5.com/tested-with/google
-
@kevin71246 This other thread has your question and my answer to it.
-
@rfc2822 Do you have an issue tracker somewhere? I found the source code in GitLab but I’m not seeing an issue tracker. I thought “Milestones” might be the right place but that page doesn’t load for me. I’d like to take a stab at fixing the ICSx integration for Google Calendar.
-
@Carlin No, please use the forums for the same thing you would use an “issue tracker”.
What yould you like to fix? Does Google calendar advertise the Webcal feeds? Which method do they use?
-
Still doesn’t work for me.
Searching online, I found this document which states that the correct URL to use is:
https://apidata.googleusercontent.com/caldav/v2/calid/events
Where calid is the calendar id.
And it also mentions on that page that the endpoint we currently use is deprecated.
I used this endpoint, but only the contacts are being synced. I’m guessing this is because the endpoint is not properly supported?
It is interesting that the article was last updated July 2018, but in 2019, we are still using the old endpoint. Is this on purpose?
-
@smac89 make sure to closely follow the official davx documentation for setting up Google calendar. It works for contacts and your primary calendar. The newer endpoint provided by Google is unsupported.
When I first set davx up I overlooked a key part of the url we’re supposed to use for Google calendars.
-
@Carlin what would that key part be?