Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Background Sync #20

Closed
KierenConnell opened this issue Sep 24, 2022 · 6 comments
Closed

Feature Request: Background Sync #20

KierenConnell opened this issue Sep 24, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@KierenConnell
Copy link

Currently, if I add tasks, or make changes to tasks in the WebUI, they don't get pushed to the Android app until the app is manually opened.

I'd like a setting to define a sync interval (15mins, 30mins, hour, daily) that occurs regardless of if the app has been opened recently.

@kolaente kolaente added the enhancement New feature or request label Sep 26, 2022
@Benimautner
Copy link
Collaborator

What do you need this feature for? I'm presuming for the notification feature, so you get notifications even when you haven't synced? Tasks are not saved on the phone at all, so syncing them for anything other than the notifications does not make sense. They are always manually fetched. I'll look into background syncing for the notifications though.

@KierenConnell
Copy link
Author

I want them exactly for notifications.
I don't want to create a task in the WebUI or Windows app and then have to remember to go open the app on my phone (And if they're shared tasks, or assigned tasks remember or remind someone to go open their app) before the task syncs across and shows reminders.

Having the ability to have tasks sync both directions on a schedule would also be a very useful feature - If I have multiple tasks, and my phone goes offline, I can still mark the tasks as complete (or update them) then when my phone is online, the sync will occur (and I'd assume a last modified like timestamp would be checked) and the changes would be sync'd back.

@kolaente
Copy link
Member

A real offline sync can be rather complicated to implement because you'll need to handle conflicts between changes done offline and on the server while the device didn't have access to the internet. There are solutions for that but it's a bit more complicated.

In the long-term we'd like to have something like that for the web interface as well so it might make sense to consolidate the implementation to re-use parts of it for all clients.

@k9withabone
Copy link
Contributor

@Benimautner You may want to look at workmanager for background operations.

@Benimautner Benimautner self-assigned this Sep 28, 2022
@Benimautner
Copy link
Collaborator

@KierenConnell this has been added in the newest version 0.0.25-alpha.
Would you mind trying it out?

@Benimautner
Copy link
Collaborator

Closed due to inactivity. Feature has been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants