android icon indicating copy to clipboard operation
android copied to clipboard

Notification "Starting offline operations" pushed to smartwatch or KDE Connect

Open tryptophane opened this issue 8 months ago • 6 comments

⚠️ Before posting ⚠️

  • [x] This is a bug, not a question or an enhancement.
  • [x] I've searched for similar issues and didn't find a duplicate.
  • [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [x] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Have a Linux PC with KDE and use the KDE Connect app on an Android device, which pushes all notifications from the phone to the PC, where they pop up as notifications in the KDE system tray
  2. Have Nexcloud installed on the android device and connected to a server. You don't need to have files marked for offline use.
  3. randomly, sometimes every 5 minutes, sometimes not for an hour or more, the KDE desktop will show a notification coming from the phone saying "Starting offline operations".
  4. Another user reported the same issue, where this notification gets pushed to his smartwatch. There is a forum thread about this issue here: https://help.nextcloud.com/t/android-app-constantly-notifies-starting-offline-operations

Important: this notification does not appear on the android device. It seems to be silenced there, but is nonetheless caught by KDE Connect. There is no way to deactivate this notification on the phone.

The issue seems to be present in the stable version of nextcloud and I experience it since several months using the dev version from f-droid.

Expected behaviour

As this notification is pointless, it should not pop up constantly on the KDE desktop or on smatwatches.

Actual behaviour

Notification "Starting offline operations" pops up at varying intervals on the KDE desktop (or on the smartwatch)

Android version

14

Device brand and model

Nokia XR21

Stock or custom OS?

Stock

Nextcloud android app version

20250321

Nextcloud server version

30.0.6

Using a reverse proxy?

I don't know

Android logs

Maybe this is helpful, it's a screenhot (no way to do copy-paste) from the "Offline operations" screen found in the dev version of the app under "technical test mode" in the settings:

Image

Server error logs


Additional information

I found the place in code where I think this notification is build. It's in OfflineOperationsNotificationManager.kt:

https://github.com/nextcloud/android/blob/9cf510d58adcb5bd877ee130992bcfda27e928a6/app/src/main/java/com/nextcloud/client/jobs/offlineOperations/OfflineOperationsNotificationManager.kt

@Suppress("MagicNumber")
    fun start() {
        notificationBuilder.run {
            setContentTitle(context.getString(R.string.offline_operations_worker_notification_start_text))
            setProgress(100, 0, false)
        }

tryptophane avatar Mar 31 '25 13:03 tryptophane

Please fix, super annoying.

Alex9001 avatar May 07 '25 07:05 Alex9001

I experienced this too, it is incredibly annoying to see it constantly via KdeConnect.

tannisroot avatar May 20 '25 22:05 tannisroot

Adding my voice to this irritating notification.

Phone does not display it, but it is picked up by KDE Connect and relayed to my desktop.

The notification is also appearing on my OnePlus Watch 3:

Image

bigcalm avatar Jun 02 '25 14:06 bigcalm

In KDE Connect on your phone, you can disable the notifications from Nextcloud. Go to the three dot menu on the top right ==> Module settings ==> Notification Filter (or similar, freely translated from German) and disable Nextcloud in the app list

madic-creates avatar Jun 03 '25 06:06 madic-creates

This doesn't appear on the phone or on KDE connect for me (I may have disabled it) however it spams the android notification history. Sometimes multiple times per minute. My notification history has pages and pages almost exclusively just this message repeated.

rubikcuber avatar Jun 04 '25 15:06 rubikcuber

Please fix this! THis is so much annoying that I want to build a patched version!! On my Phone this message is even coming when I diasbled all Notifications of the App!! every time randomly a short vibration and for a second the popup.. Enought to stop youtube kids a hundred times when my kid watches its 5 minutes.. It drives me crazy!

@AndyScherzinger deleted the app now since my phone is vibrating all the time I activate the screen, even if the app has no permissions to send notifications.. it disturbes everywhere when using the phone.. think this is related to the auto upload.

romulus-ai avatar Jun 06 '25 20:06 romulus-ai

Just wanted to bump this, as its still happening for me.

pcsonka avatar Aug 25 '25 06:08 pcsonka

Same problem with Talkback this notification is read by the voice during usage of other app. It's very annoying.

Can you fix this ?

Sebseb01 avatar Aug 29 '25 13:08 Sebseb01

looping in @tobiasKaminsky and @alperozturk96

AndyScherzinger avatar Aug 29 '25 16:08 AndyScherzinger

Hello

With this PR: https://github.com/nextcloud/android/pull/15451, you can disable offline operation notifications or cancel offline operation.

We are also working on the fix.

alperozturk96 avatar Sep 01 '25 07:09 alperozturk96

Fix will be included in the next release: https://github.com/nextcloud/android/pull/15487

alperozturk96 avatar Sep 01 '25 12:09 alperozturk96