Android App 3.24.2: Synced Files Deleted From Phone After Short While

On a Samsung Galaxy A52 with Android 13, synchronized files somehow seem to get deleted after a short while.

I try to use the Nextcloud app version 3.24.2 to sync documents and especially photos between several Android phones and laptop computers - the current behaviour causes the affected phone to never have any photos available, which renders the whole approach unusable. :frowning:

I don’t observe the same issues on a Nokia 8 Sirocco with Android 10 (Android One) with the same Nextcloud App version.

Does anyone have any idea how to solve this? Is it the Nextcloud app randomly deleting synced files, or is it some special Samsung “cleanup magic” randomly deleting my files, or is it a new “feature” in Android 13 compared to Android 10 which lets Google decide which data I need, instead of me deciding myself what I want to have available locally?

Is it just some storage management setting somewhere?

I already went through basically all system settings on the Samsung phone, but could not find any which seems I considered to be related to Android randomly deleting some app data. (I’d understand if it may do it with contents in the “cache” directories, but actual app data? How can it know which can be restored again and which would be lost for good?)

Googling found references to some Samsung “Storage Manager” in the settings, but there is no such thing in the Android 13 settings on this phone.

When you say “synced” are you referring to the Auto Upload feature under Settings (that’s what is most often associated with photos)?

Also, are the photos actually not on the server too (I.e. just not on the phone any longer?

I’m assuming you’ve already checked the Original file will be... settings for each of the various folders involved within the Android Nextcloud client. The other that immediately comes to mind is to make sure Google Photos isn’t installed because it’ll also try to manage locally stored photos, deleting them as needed to manage space after uploading them.

For documents, are you using the Sync parameter in the file browser for a specific folder or attempting to use the Auto upload feature under settings?

No, I didn’t mean the auto-upload feature - I never tested this and never used it.

Google Fotos is installed, but is not logged in to any account and does not sync anything. That’s what I’m using Nextcloud for (or at least trying to do).

Also, yes, the photos are (fortunately!) still on the server, they are “only” deleted locally.

However this doesn’t help if you want to browse them on the phone, share them and / or show them. That’s just not conveniently possible with fotos only available remotely, they don’t show up in the Samsung Gallery app, they don’t show up in Google Fotos, and accessing them through the Nextcloud app is really slow.

With “sync” I meant that I selected the folder in the Nextcloud app and chose “Synchronize” from the folder’s “…” menu.

Nextcloud will happily download the fotos and documents in this folder hierarchy then, and they will temporarily be available locally, before they are somehow removed again and “lose” their green checkmark overlay, disappear from the Gallery app and Google Fotos app, etc.