Access to Google-Calendar via CalDAV-API fails
- /e/ version: 0.18-20210827132306
- Device model(s): fairphone 3
- Device rooted: yes (not sure)
Summary
Google-calendars can be accessed not only by adding a google-account / micro-g account, but also simply by connecting to the caldav-api. This way I am, for example, able to connect my Mozilla Thunderbird (lightning) Calendar (on a PC) to Google-Calendar. It's necessary to know the caldav-url, username, password. In some cases it's advisable to create device-specific passwords (from within google account settings).
The problem
Note: My /e/os is in German, the wording might not always be correct as I translate from German to English
Steps to reproduce
- go to System-settings/Accounts
- press + for adding a new account
- Choose WebDAV (or DavX5, if this app is insalled; same behaviour both ways)
- Choose "sign up using URL and credentials"
- Enter Caldav-url (https://apidata.googleusercontent.com/caldav/v2/youremailaddress/events)
- Enter username and password
What is the current behavior?
It seems to work at first. A new account is created, I get to choose an account name too (which never get's displayed, but that's another issue). I am able to choose to sync calendars. BUT: those calendars will never appear in the calendar app.
There appear to be two levels of settings. When I enter the settings system/accounts I can press "Account-Synchronisation" ("first level" of settings), but there is only a toggle for “addressbook” . Other toggles such as “tasks” or “calendar” are missing. However, when I press “Account extra-settings” I seem to access a second setting-level, with separate tabs for Carddav / Caldav / Webcal. In the Caldav-Tab it looks like I can choose to sync the various calendars of my google account. Pressing the sync-button bottom right seems to do something, no error message displayed. But those calendars will neither appear in the calendar-app, nor in the "first level" of settings as described above.
What is the expected correct behavior?
(Preferably, there should only be one layer/level of settings for choosing which items to sync. But that's another issue)
In the first level, there should be a toggle for synchronizing "calendars" and other elements which are available in the second layer of "extra-settings" too.
calendars, which are selected for synchronisation, should appear in calendar app.
** P.S. ** Accessing Google-Accounts via WebDAV-Standards would be a good work-around for other, open issues of not being able to connect to google accounts such as described here: #2732 (closed)