PhilKes / NotallyX

Minimalistic Android note taking App | Notally, but eXtended.
GNU General Public License v3.0
70 stars 1 forks source link

Sync devices using Syncthing #109

Open yerc opened 2 weeks ago

yerc commented 2 weeks ago

Describe the solution you'd like I would like NotallyX to sync between my phone and tablet locally using Syncthing https://syncthing.net/

Additional context For this to happen an app has to save its data files in a user-accessible folder. Syncthing will then synchronize the folder in one device (example phone) with the same app's data files in another device (example tablet).

Thanks for adding features I was hoping Notally had.

ippocratis commented 2 weeks ago

You can sync you backup folder with it. You can even backup to a WebDAV mount.

Also have in mind that syncthing for android development is stale.

PhilKes commented 2 weeks ago

As you proposed I would consider configuring whether the app uses the apps internal storage or some user-specified folder on the device. That would enable you as @ippocratis said to use syncthing, WebDAV or whatever to sync the files between devices. What I dont want is to manually add service-specific integrations, since maintaining it would take a lot of effort

yerc commented 2 weeks ago

Thanks @PhilKes for considering to allow user the choice between app internal storage and user-specified folder for my proposal to happen. I know I can do backups which can be restored elsewhere, but that does not make the devices in sync. For what it's worth, Syncthing on Android lives on thanks to Syncthing-fork.

PhilKes commented 1 week ago

@yerc As far as I can see its not directly possible to move the Database (RoomDatabase) out of the app-specific storage into any user-picked folder. Would it be sufficient if you can choose to either use the app's internal storage or the app's external storage (e.g. /storage/emulated/0/Android/media/com.philkes.notallyx) which the user can access directly?

yerc commented 1 week ago

Thanks @PhilKes. As the user can access /storage/emulated/0/Android/media/com.philkes.notallyx, moving the Database to this location should make it possible to sync NotallyX between devices through Syncthing.