Vinzent03/obsidian-git

[Bug]: Auto commit and push does not trigger

Baptiste-Garcin opened this issue · 1 comments

Describe the bug

On my iPhone, there is no automatic push after the interval if I minimize the obsidian app. The commit+push process trigger when I reopen the app

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

No response

Steps to reproduce

Install the plugin
Auto commit and sync interval to 2 mins
Enable "Auto commit-and-sync after stopping file"

Edit a file
Minimize the app
Wait 2 mins
Re open obsidian app

Expected Behavior

I am expecting that he auto commit-and-sync trigger in background.

Maybe, it can't be done. In this case, is there a workaround ? Something like "auto commit at app closing" ?

Addition context

No response

Operating system

iOS

Installation Method

None

Plugin version

2.27.0

You already guessed it, the app is paused in the background so nothing is run. There is a small timeframe to allow running a commit and push on closing, but I won't support this, because it can take quite some time on mobile and may break if it's paused while pushing. So there won't be a solution for now.