denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.15k stars 252 forks source link

[Feat]: *Mobile* no backup when switching to Home #589

Closed amitkot closed 9 months ago

amitkot commented 10 months ago

Describe the bug

On the mobile, when switching to "Home", the app closes and git backup is not performed.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No response

Steps to reproduce

  1. Make some change to a note
  2. Move to phone "Home"

Expected Behavior

Backup should be performed on leaving the app, otherwise the last changes will not be backed up until next time the app opens

Addition context

No response

Operating system

Android

Installation Method

None

Plugin version

2.22.0

Vinzent03 commented 9 months ago

I don't think this is possible. The backup on mobile already takes quite a while so it's not possible to do that while it's closing. And I don't think doing that in the background is possible as well. It's not even possible on desktop.