Skip to content

Firebase#17

Open
zgerbi wants to merge 47 commits intomainfrom
Firebase
Open

Firebase#17
zgerbi wants to merge 47 commits intomainfrom
Firebase

Conversation

@zgerbi
Copy link
Copy Markdown
Collaborator

@zgerbi zgerbi commented Apr 18, 2022

Implemented full sync functionality

zgerbi and others added 30 commits April 6, 2022 17:58
Tests and flutterfire integrated, tests are in Calendar tapdate
Sends all events to firebase with appropriate file structure
Also probably does todo lists too! But I can't check that yet
Needs more testing of multiple users and the to-do list, but all functionality *should* be implemented.

The method to use here is
Sync.sync(DateTime.now());
whenever you write to globals, and
Sync.sync(); to update either the local app or the database to the most recent changes. The latter should be called on startup, and maybe every minute or every few minutes.

Current problem logically is that there is the potential for a user to try to sync changes before they get the most up-to-date database, leading to data loss. Could maybe be solved with a listener on the database and syncing on any change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants