Orgzly auto syncronisation is not yet implemented for remote repositories such as local repos synced with, e.g., syncthing. See orgzly/orgzly-android#8.
While other scripts proposed in the linked issue fix the problem, I've compressed those into a simple script.
The script is meant for use in termux. Install the Termux-boot plugin. Then put the script into ~/.termux/boot
. Now it should automatically run all the time after Android startup.
I use the script for the /sdcard/org directory. This is the directory of my local repository. Insert the path you use there.
Yeah, I'm not sure where I got that from. I guess this could just be removed. (I've removed it)