An iPhone isnât syncing with a NextCloud calendar in the background. However, when manually opening the Calendar app, events created since the last time opening the app pop up after a few seconds.
These requests are made when opening the Calendar app on the iPhone:
Feb 2 10:18:34 401 1293 - - ---- 738/695/2/3/0 0/0 "REPORT /remote.php/dav/principals/users/$username/ HTTP/1.1"
Feb 2 10:18:35 207 1259 - - ---- 753/711/2/3/0 0/0 "REPORT /remote.php/dav/principals/users/$username/ HTTP/1.1"
Feb 2 10:18:35 401 1200 - - ---- 756/712/2/3/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/ HTTP/1.1"
Feb 2 10:18:35 207 2603 - - ---- 758/713/2/3/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/ HTTP/1.1"
Feb 2 10:18:36 401 1200 - - ---- 755/713/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/personal/ HTTP/1.1"
Feb 2 10:18:36 207 1313 - - ---- 754/712/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/personal/ HTTP/1.1"
Feb 2 10:18:36 401 1200 - - ---- 755/712/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/personal/ HTTP/1.1"
Feb 2 10:18:36 207 2118 - - ---- 755/713/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/personal/ HTTP/1.1"
Feb 2 10:18:37 401 1200 - - ---- 755/716/2/3/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
Feb 2 10:18:37 207 1264 - - ---- 754/716/2/3/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
Feb 2 10:18:37 401 1200 - - ---- 760/718/2/3/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
Feb 2 10:18:38 207 1447 - - ---- 757/716/3/4/0 0/0 "PROPFIND /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
Feb 2 10:18:38 401 1200 - - ---- 762/721/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
Feb 2 10:18:38 207 2482 - - ---- 764/722/2/3/0 0/0 "REPORT /remote.php/dav/calendars/$username/inbox/ HTTP/1.1"
No such requests are logged when the Calendar app is not opened. I would expect this behaviour when syncing in the background is disabled, or fetching is set to manually, but this is not the case.
What Iâve tried / checked:
- The iPhone is not set to Low Power Mode.
- The âFetchâ setting under Settings â Calendar â Accounts â Fetch New Data is set to âAutomaticâ. I tried setting it to every 15 minutes, but that doesnât work either.
- The âselect scheduleâ setting under Settings â Calendar â Accounts â Fetch New Data â the NextCloud account is set to âFetchâ.
- The Calendar app is not in the app list under âBackground App Refreshâ, but the âBackground App Refreshâ setting itself is set to âWi-Fi & Cellular Dataâ.
- Iâve also configured the NextCloud calendar in the iCal application on macOS (11.6). âRefresh Calendarsâ is set to every minute there, which works: events are synced even when the application is closed.
- The issue is not fixed by removing and re-creating the CalDAV account in iOS.
Iâm running NextCloud version 23.0.0, but I experienced the issue with 21.x as well. The NextCloud health check does not report any problems.
I am aware that this issue may very well have nothing to do with NextCloud, as it works well on the Mac. I hope someone else using NextCloud/CalDAV with iOS has any pointers.