Vinzent03 / obsidian-git

Integrate Git version control with automatic backup and other advanced features in Obsidian.md
MIT License
6.94k stars 297 forks source link

[Bug]: iOS Fetching aborted by iOS device auto lock / sleep #769

Open sirEven opened 2 months ago

sirEven commented 2 months ago

Describe the bug

Note: I am pretty sure this is the wrong repo to post the issue since there wont be any ios specific code here i guess, but in my mind it was the closest that made sense to bring it up at all, as it is directly concerned with this plugin.

When I open obsidian on my ios device, that is setup to automatically pull upon opening, this might take several minutes. If the phone then goes into sleep or performs auto lock, it aborts and potentially scrambles the whole git process. I am aware of iOS wide options like setting auto lock to "never", but cleaner solutions would be either a setting for mobile clients, similar to note apps like Notability, to "keep device awake" or maybe even implement some sort of background activity to ensure clean repo pulling and pushing.

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

No response

Steps to reproduce

1) Setup git plugin to run on ios device 2) Perform a pull command that takes longer than the lock timer of the device, which will highly likely introduce errors or in the worst case even scramble the whole repo sync state.

Expected Behavior

No response

Addition context

No response

Operating system

iOS

Installation Method

None

Plugin version

2.26.0

sirEven commented 2 months ago

somewhat related, as this is what it may lead to: https://github.com/Vinzent03/obsidian-git/issues/702