Syncthing on iOS/iPadOS

There are quite a few “plain text productivity” apps that I use, such as Obsidian. I wanted to use Syncthing to sync my Obsidian notes to my iPhone and iPad, since it will not leave a copy “in the cloud.”

But iOS inability to run apps well in the background make it a frustrating experience. I installed Möbius Sync a while ago. I liked it, but running it in the background worked for maybe a day, before iOS would freeze the app and it would stop syncing completely till I popped the app.

So, I came up with a solution that has worked well so far. I created a Siri shortcut called “Open Obsidian.” The shortcut opens Möbius sync, pauses for 15 seconds (to allow files to sync), and then launches Obsidian and all my notes are there. You can obviously change the pause value to whatever you want to make sure all your data syncs over.

I do most of note creation on my Mac, so syncing back from the iPhone isn’t as much of an issue. But since I just opened Möbius sync, it should sync back to the Mac at some point, just not sure exactly when that’s going to happen.

So, that’s my user story.

1 Like

You may be interested in Synctrain. It is another iOS app (I made) that has a bit deeper integration with Shortcuts. You can e.g. tell it to sync for a while in the background.

2 Likes

I’ve been following your threads. I installed it about an hour ago, but haven’t set it up yet. Looks like your app is closer to ready for Syncthing 2.0 than Möbius sync is.

Impressed that both of you are keeping Syncthing working on iOS.

You’re able to sync Obsidian within 15 seconds? That’s pretty fast compared to mine. I use Syncback to sync Obsidian between my PC and my laptop, but I use Syncthing to sync between my PC and my Amazon tablet (because I could not get Syncback to work on the tablet. I use Obsidian for my TTRPGs and it is a large vault (though not as large as some).

The first sync will obviously take a lot longer. But the updates I do, I don’t see them taking more than 30 seconds.

Are you just syncing game notes, or all your PDF rulebooks also?

It syncs all my folders as I do make frequent changes and add things.

Then you could increase the pause to one or two minutes. But you’re on Android, so that’s a different experience.

I have a friend who’s using Nextcloud on Android to bidirectionally sync his Obsidian data and he doesn’t have any issue. That might be worth investigating for you.

I never really thought of it as having an issue. The system runs fine as is but just takes a while to update. I haven’t used it in awhile but I will check to see if I can get it to sync again and let you know how long it takes.

It seems I am having a bit of an issue. I had to add a folder (with permissions) that has a few different types of decks in it with jpegs for the card images. It synced 2 of the 5 folders in there no problem but stopped on the 3rd. It said it was still in the process of syncing and the folder was there but nothing in it, it just sat there for like 5 minutes doing nothing. After I restarted syncthing on both devices the folder synced, but the last two folders would not. I restarted syncthing on both devices multiple times with no effect. I then added a temp folder with a temp text file and restarted the syncthing services and it finally finished syncing everything.

Synctrain is worth trying if you haven’t — it has native Shortcuts integration and the dev actually ships a recommended nudge-to-sync pattern that’s basically the same approach you worked out. Background sync is still iOS’s problem no matter which app you pick. Wrote a longer breakdown covering both clients and the upload-back timing issue here: Syncthing on iOS: How to Make Möbius Sync and Synctrain Actually Work - Port & Patch

I’ve given up on Obsidian. The iOS sync issue was only one thing that made be abandon it.

The other issue with SyncThing is it expects all files to be available local. It’s a true sync solution. Most apps now offer File Provider, which integrates with iOS’ Files app, and opens files “on-demand,” so your phone isn’t filled with files you don’t need.

Right now I’m using SyncThing for anything I need a copy of on my mobile devices that I want a copy of local. For anything else I am using Nextcloud along with its clients that support File Provider.

I really need to set up SyncTrain and give it a try. I paid for Möbius Sync and have used it for a while. With Shortcuts, it works well. I think SyncTrain might work better.

The only thing that’s really kept me from setting it up, believe it or not, is how much I hate using a phone for anything useful. I hate sitting there and pecking on this tiny screen to get anything done.

My order of preferences for my devices is: Mac min → MacBook Pro → iPad → TCL NxtPaper 14 → iPhone.

I may be the odd one out here, but I will always pick my phone LAST to do anything. If I could afford it, I’d buy an iPad mini with a cellular plan and carry that around everywhere instead of using my iPhone. I know there’s a new folding iPhone on the hortizon. But I’ve played with some of the folding Android phones, and they’re still too small for me. If it doesn’t open to at least the size of an iPad mini, I’m not really interested.