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

Allow syncing with an external XML file #132

Open
Victor239 opened this issue May 24, 2024 · 0 comments
Open

Allow syncing with an external XML file #132

Victor239 opened this issue May 24, 2024 · 0 comments

Comments

@Victor239
Copy link

Currently we can export a XML file or import one, but we can't opt to continuously sync with one. Having this feature would enable utilising the same XML file on both mobile and desktop, using Syncthing or another app to sync between devices.

Workflow:

  • An option in Settings to select a XML file to stay in sync with. At this stage the user is asked whether they want to for this first sync either (1) overwrite the external file using the app's database or (2) overwrite the app's database using the external file.
  • After this first write the app then checks the timestamp of when the external file was last modified and stores it in the database.
  • Whenever GnuCash Pocket goes into the foreground it should check whether the file has a different modification timestamp than what was last recorded in the db. If so, then refresh GnuCash Pocket database with data from the XML file.
  • Whenever making edits inside GnuCash Pocket aim to update the XML after 1 minute of inactivity within the app. After updating the XML then record the last modification timestamp of the file to the database.

This process will then allow the user to seamlessly swap between mobile and desktop whenever they wish.

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

No branches or pull requests

1 participant