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

[mobile] Suggestion: push on switching away #846

Open
0x53A opened this issue Jan 21, 2025 · 1 comment
Open

[mobile] Suggestion: push on switching away #846

0x53A opened this issue Jan 21, 2025 · 1 comment

Comments

@0x53A
Copy link

0x53A commented Jan 21, 2025

I've got obsidian set up to synchronize between 4 devices using git, and it works great, thank you!

In my configuration I've set it so it pushes after 1 minute of inactivity, that way it synchronizes reasonably fast and I have a reasonable number of commits.

What I've noticed when using it though that I often miss the last commit, because I type something, then switch to a different app, and, mobile being mobile, it never synchronizes in the background.

The easy solution is of course to quickly open it up one more time, whence it will quickly push.


Do you think it would be possible to add an option to push on losing focus (desktop app) or putting the app to sleep (mobile)?

@0x53A
Copy link
Author

0x53A commented Jan 21, 2025

I looked through the obsidian api and couldn't find any lifecycle events, so it's probably not possible.

Someone else listed what would need to be done (in the native obsidian app): https://forum.obsidian.md/t/graciously-handle-mobile-app-inactivity-improved-suspension-handling-and-state-management/88490

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