elementary / calendar

Desktop calendar app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
131 stars 39 forks source link

Add Offline Support #492

Open marbetschar opened 4 years ago

marbetschar commented 4 years ago

Prerequisites

Feature

It would be awesome to have offline support in the Calendar app. Right now, if the app is started while we do not have any internet connection it does not display any event.

Describe the solution you'd like

Show all known events in the Calendar while in offline mode and sync possible modifications as soon as we are back online.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/89069035-add-offline-support?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github).
mcclurgm commented 4 years ago

At least while it still requires a connection, it would be nice if it could show some sort of error message when it can't connect. As it is, it just displays an empty calendar when not connected, which is not helpful and potentially confusing.

fabiozaramella commented 4 years ago

It seems that starting Calendar offline doesn't show previously imported online events yes, but only at first. In fact, after a while they show up properly, even offline, it's just very slow.

EDIT: I thinks the reason is that currently the wait_for_connected_seconds parameter when calling ECal.Client.connect is set to wait 30 seconds, which is far to much, I think we can safely set it to -1 not to wait and then assure Calendar is synced when connected back to the Internet.