Android app does not upload images taken while screen locked

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.5.1
    • This is the official container
  • Operating system and version (e.g., Ubuntu 24.04):
    • OpenShift 4.21
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • I’ve noticed it along the years.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • official container on OpenShift kubernetes
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no
  • Android app version:
  • 34.0.0. RC1
  • Android version:
  • OxygenOS 16.0.7

Summary of the issue you are facing:

I again run into an issue that android app does not notice new pictures and does not sync them to instantupload. This happens when I quick open the camera while the phone is locked by double pressing the volume button. Otherwise uploads work just fine automatically, but such images are skipped.

Steps to replicate it (hint: details matter!):

  1. Have android locked (OnePlus 13R)
  2. double press volume button to open camera, and shoot a pic
  3. nextcloud totally ignores the photo.

I tried to restart the sync by toggling the folder sync off and on again, no help.

Actually, I found a way to force it. Open the lock and open camera, and shoot a new pic. This makes it sync all the pics taken while phone was locked. But this was confusing, as I spent 15 minutes figuring out how to make it sync.

Log entries

Nextcloud

This is a problem of the android app.

Web Browser

Web server / Reverse Proxy

Configuration

Android app is set to monitor DCIM/Camera folder

Works as designed to prevent from battery-draining, otherwise Nextcloud permanently remains active. I like this behavior, because I only want to upload images via WLAN and while using Nextcloud app.

If you don’t care about it:
Call Settings-app - Apps, and select Nextcloud
Disable “Pause app-activity while not in use”
Select “Battery” - scroll down until “Nextcloud” appears. Tap on “Nextcloud”. Here you can set more options (“Powersave-Mode”, “Close app after 10 minutes unuseed”,…)

Run Nextcloud app, tap on “three-bars-menu” - “Automatic upload” - search “Camera” and tap on the three dots right of it. Select “Configure”-“Save” - a dialog appears “Battery optimizing …” - select “Deactivate”

Now upload in background should work - I hope so :wink:

Please note: Nextcloud might use more than 20% of the battery capacity then.