Nextcloud Android client does not work with battery optimization or battery saver mode - why?

Hello,
if Android battery saver mode is enabled and/or unrestricted background usage disabled, Nextcloud sync on Android client will completely refuse to work even on manual triggering:

  • Menu → Uploads: lists new file(s), but hints: ā€œWaiting to exit power save modeā€.
  • Settings → Auto upload → Toggle of custom folder: shows ā€œYour device may have battery optimization enabled. AutoUpload works only properly if you exclude this app from it.ā€

I’d be curious: Is there any technical reason for this limiting behavior? To my knowledge, manual triggering should be possible at all times, regardless of battery optimizations.


Nextcloud Android v3.31.1

It will ā€œworkā€ with Battery Saving mode enabled, but battery saving mode typically limits or outright shuts off background activity, so automatic uploads, which relies on being on in the background, just won’t work.

In other terms, the Battery Saving modes make it so Nextcloud can’t run in the background, which it needs to do in order to do automatic uploads.

Thanks for the reply @Xylerfox ,

hm but even if I keep the app opened/in foreground, and trigger a sync process manually (Menu → Uploads → pause and un-pause again), Nextcloud refuses to even start. Despite feature being called ā€œautoā€-upload, I have hoped to at least trigger it manually with battery save mode enabled.

Or is this not possible at all, as it always runs in background?

I’ve noticed lately the syncing feature being weird, especially on my Samsung phone.

Before, my phone would immediately upload files the moment I turned the feature on, but lately it takes a while, sometimes hours, for the sync to happen. I’m not sure if it’s Android related or NextCloud related at this point, but I’ve had some issues.

However, I honestly would just add NextCloud as an exception to battery saving features. Since it doesn’t actually take up any battery life on its own, it’s useful to add it as an exception.

I’d like to share my experience, as I was dealing with a very similar issue.

I also have a Samsung phone and I’m currently using the Nextcloud Android client version 3.31.1, but with an important difference – I installed it via F-Droid.

When I previously used the version from Google Play, I had the exact same problem with synchronization. The app simply wouldn’t sync reliably, especially when battery optimization was enabled — and even sometimes outside of that.

If I remember correctly, Google introduced certain restrictions that directly affected apps running in the background, particularly those accessing the file system. It seems that these changes negatively impacted the Play Store version of the Nextcloud app.

Since switching to the F-Droid version, which apparently isn’t bound by the same limitations, synchronization has been working flawlessly.

I definitely recommend trying the F-Droid version if you’re experiencing issues with auto-upload or background sync.

You probably mean the ā€œbackground usageā€ exception for apps with Optimized/Unrestricted value. I am using the Android ā€œBattery Saverā€ / power saver and to my knowledge there is no ability to add exceptions to it (please correct anyone otherwise).

With battery save, you always get "Waiting to exit power save modeā€, before Nextcloud sync starts.This means I would need to completely turn off this feature saver only to use Nextcloud.

To give a positive counter-example: Syncthing on Android provides a toggle to manually start sync given power save mode. It’s called ā€œForce start ignore run conditionsā€.

Also using F-Droid :slight_smile: .
I think Unhappy with the recently lost file upload feature in the Nextcloud app for Android? So are we. Let us explain. sounds like it was your issue. This one might be orthogonal to it.

1 Like

I was having a similar issue. I unistalled Playstore version. Installed F-Droid + Nextcloud. Unfortunately I still had issues (With Samsung Galaxy phone), particularly trying to pause / start sync in the ā€˜Uploads’ section (application crashed). So uninstalled, F-Droid verison, re-installed play version, and it started to work OK again (uploading camera photos to Instant Upload folder (in my case). So it seems a little buggy… I guess due to phone company battery saving issues.