I am using Syncthing with a vault between windows and android over Wifi. (BTW: location services to detect the wifi name takes a lot of battery, is there a way to get them without it?)
I get conflict files.
As I understand it, syncthing works on file level, not content level, ie it looks for differences in size, change date, maybe other metadata.
Given that differences in obsidian mean addition and removal of text within the file and the right thing to do is to look at the newest file and merge both, not copy the newest file to the other device and overwrite.
Before doing anything else, are you running the newest version of Syncthing on both sides (which is v1.27.0 at the moment of speaking)?
When it comes to Wi-Fi detection, yes, you do need to have location services enabled. There is no other way. The restriction comes from the Android OS.
I just upgraded to 1.27.0 after I read this on android, so I was using 1.26 before. On Windows it’s now v1.27.0, Windows (64-bit Intel/AMD).
Is “As I understand it, syncthing works on file level, not content level, ie it looks for differences in size, change date, maybe other metadata.” true?
True, however, normally when you change the content, then at least the modified date changes too (even if the size remains the same), which then triggers Syncthing to rescan the file.
I was asking to upgrade to the newest version because of https://github.com/syncthing/syncthing/commit/16ae1fbe5e77b682aff1c546fe20bf3904cd42df, which was merged not so long ago, however if you were already on v1.26.0 and still getting conflicts, then the culprit is likely something else . I used to get a lot of conflicts on Android before v1.26.0, but now, there are no conflicts whatsoever.
Well the culprit is the comparison method. Can you add a content comparison just for .md and .txt files, which are as you know non-binary and easy to read?
Keep in mind that if the action is to “look at the newest file and merge both”, the end result will be that any text that was removed in the newest version of the file – but still exists in the older version – will be effectively undeleted. For a note taking app such as Obsidian, it’s likely not what most users would want/expect to happen.
What you need is a revision control tool. Search online for “git sync obsidian” for tips on using Git (which has a merge feature).