I am using android Nextcloud app to access files on a private Nextcloud server. I set some files (keepass password files) for offline access and the nextcloud does show them as accessible offline. I have configured nextcloud app as storage provider and pointed keepass2android to the folder with password files (which, as I said, should be accessible offline). However, when I try to access the files while the server is offline, keepass2android takes forever before saying something like “could not syncronize files, loading cached version”.
What I would like to happen (what I would think should happen with offline files) is for keepass2android (or any other android app) to think that the files are local and just open whatever is stored for offline use. Then have nextcloud app sync the files when the server is back online. Is it possible to configure the app this way?
I’m using
- Android version 15
- Android nextcloud app version 3.31.1 (from playstore)
For the Nextcloud app, it should be possible to work on these offline available files and then it syncs it back at a later time. Perhaps you can try this with some textfile if that is working?
We can help you to check and report problems with the Nextcloud apps. Here it is better to check with the developers of this app.
I think I figured this out though I’m not sure if I would call it a solution or a workaround.
In particular it seems to me that Nextcloud storage provider attempts to fetch files from the server even if it has offline version of the files. It then fails if it can not reach the server. In the specific case of keepass2android, once nextcloud fails to fetch the file, the version cached by keepass2android is loaded.
On the other hand, I can open offline files by navigating in a file manager to the internal storage and then to Android/media/com.nextcloud.clinet/nextcloud/user@nextcloudserver/my_offline_folder. I assume these files will be synced once the server is online. It is a bit counterintuitive for me that I should avoid going through the nextcloud storage provider but now that I know what is happening, I can use the working method.
it makes sense to check if there is a newer version. Question is more how to set up the timeouts and how it detects a connection problem (e.g. it uses the offline version directly when the network signal is very weak). In such a case it would be an advantage for you to have an option to connect only on wifi networks.
Perhaps some users or developers of the android can give more details?