ClipCascade icon indicating copy to clipboard operation
ClipCascade copied to clipboard

Clipcascade monitoring service constantly inactive on Android 14

Open Kahz3l opened this issue 8 months ago • 22 comments

Hi Sathvik,

I have the problem that the ClipCascade Service on Android is constantly nagging (about every 10 mins) that the ClipCascade monitoring is inactive.

Image

Can you tell me what to do to fix this?

the adb commands are already used, battery optimization is at unrestricted, the app runs in the background according to the task manager:

Image

Image

Device: Samsung Galaxy A55S 5G Android 14 Patch Level 2025-03

Kahz3l avatar Mar 19 '25 16:03 Kahz3l

I face the same issue on Samsung Galaxy S24, were you able to solve it @Kahz3l?

underline9396 avatar Apr 06 '25 10:04 underline9396

Unfortunately not, I use KDE connect for now.

Kahz3l avatar Apr 06 '25 14:04 Kahz3l

Hello guys,

Apologies for the delay, I’ve been quite busy and wasn’t able to look into this issue earlier. Are you guys using P2P or P2S mode? It’s possible that Samsung has introduced some restrictions on foreground tasks. I’ll take a look into it, but it might take some time.

Sathvik-Rao avatar Apr 06 '25 14:04 Sathvik-Rao

Thanks, I will also experiment with different scenarios and get back to you if I find something interesting.

underline9396 avatar Apr 06 '25 19:04 underline9396

Don't know if its useful, but I have other apps with no battery restrictions/optimizations, and from my experience, they also get closed if not used for a while. Had no issues on my old Pixel 3a, on my Samsung A35 I had to adapt to that behaviour. This morning I found Clipcascade deactivated a few minutes after the first activation. Now it's been an hour and it did not deactivate.

Forgot to say: ClipCascade is really good!

ragnarblackmane avatar Apr 30 '25 08:04 ragnarblackmane

Same here with my Xiaomi Mix Fold 3 without battery restrictions. Maybe it would help if ClipCascade would get its permissions through Shizuku.

jorbig avatar Apr 30 '25 08:04 jorbig

running graphene OS, i get it once every few days. it was a lot worse on samsung, but some method to keep it active, like shizuku/sui would be nice.

applesoff avatar May 24 '25 03:05 applesoff

@applesoff @jorbig @ragnarblackmane @underline9396 @Kahz3l ClipCascade v3.1.0 is now released. The Android app uses less memory and the monitoring service should no longer be terminated or go inactive. Please update and let me know if the issue still occurs.

Sathvik-Rao avatar Aug 07 '25 03:08 Sathvik-Rao

@applesoff @jorbig @ragnarblackmane @underline9396 @Kahz3l ClipCascade v3.1.0 is now released. The Android app uses less memory and the monitoring service should no longer be terminated or go inactive. Please update and let me know if the issue still occurs.

Unfortunately still occurs with the new version:

Image Important to know is that when this happens nothing will work even sharing via "Share - Clipcascade" does not.

Is there a possibility to generate logs for you on Android? Thanks for trying though!

Kahz3l avatar Aug 08 '25 00:08 Kahz3l

@Kahz3l

The background service typically gets killed in only two cases:

  1. When Android terminates possibly due to Doze mode or memory management. I'm still investigating this.

  2. When the app receives extremely large clipboard content.

To help prevent the second case, try setting the "Maximum Clipboard Size (Local Limit)" to limit oversized text or files. I use a value of 900,000 bytes, which has been effective in avoiding crashes (some android devices have max clipboard size of 1mb in text).

If the issue still persists, try disabling "Enable Periodic Checks". While this will remove the persistent notification, check if the service actually gets killed when you reopen the app after several hours or days.

In my case, the app occasionally stops overnight, likely due to Android’s sleep behavior - I’m continuing to investigate this as well.

Sathvik-Rao avatar Aug 08 '25 00:08 Sathvik-Rao

Screenshot_20250813-083051.png

Screenshot_20250813-083409.png

I’m using Pixel, and it’s still running strong.

Sathvik-Rao avatar Aug 13 '25 13:08 Sathvik-Rao

I also use a pixel and I have to reset it nearly daily.

applesoff avatar Aug 13 '25 14:08 applesoff

@applesoff Which Pixel device do you use? Are you running the latest 3.1.0 version of the app? Have you set the Maximum Clipboard Size (Local Limit)? Are you using the server in P2P or P2S mode?

Sathvik-Rao avatar Aug 13 '25 23:08 Sathvik-Rao

I am using Clipcascade latest version with Samsung Ultra 25 with UI 7 and i have the same problem. Unrestricted battery usage, and keeps sending a message that ClipCascade is monitoring is inactive. Very annoying !!

swbb avatar Aug 26 '25 12:08 swbb

@swbb I tested this on a Samsung device and saw the inactive message appear even when the app was running. Please try disabling Enable Periodic Check on the login page. I’ll look into what’s causing it in Samsung devices and release a fix once I know more.

Sathvik-Rao avatar Aug 27 '25 22:08 Sathvik-Rao

In the Android app there is no Enable Periodic Check on the login page.

Best regards, David

------ Original Message ------ From "Sathvik Rao Poladi" @.> To "Sathvik-Rao/ClipCascade" @.> Cc "swbb" @.>; "Mention" @.> Date 28.08.2025 00:33:26 Subject Re: [Sathvik-Rao/ClipCascade] Clipcascade monitoring service constantly inactive on Android 14 (Issue #98)

Sathvik-Rao left a comment (Sathvik-Rao/ClipCascade#98) https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3229943336 @swbb https://github.com/swbb I tested this on a Samsung device and saw the inactive message appear even when the app was running. Please try disabling Enable Periodic Check on the login page. I’ll look into what’s causing it in Samsung devices and release a fix once I know more.

— Reply to this email directly, view it on GitHub https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3229943336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5R3UOFIHRTX4S27TARP3T3PYW3NAVCNFSM6AAAAABZLJ7RI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMRZHE2DGMZTGY. You are receiving this because you were mentioned.Message ID: @.***>

swbb avatar Aug 28 '25 15:08 swbb

@swbb Android App -> login page -> enable extra config -> enable periodic checks -> Disable that checkbox

Screenshot_20250828-111135.png

Sathvik-Rao avatar Aug 28 '25 16:08 Sathvik-Rao

Sorry for the long silence, I tried several things now on my Samsung phone:

  • Limit size of Clipboard to 900,000
  • Server is in P2P mode
  • I have not disabled the notification because it is actually useful to know that it stopped working (the service is actually really killed)

Kahz3l avatar Aug 29 '25 07:08 Kahz3l

The message pops up that it is inactive, but when I paste something it still works .....

------ Original Message ------ From "Kahz3l" @.> To "Sathvik-Rao/ClipCascade" @.> Cc "swbb" @.>; "Mention" @.> Date 29.08.2025 09:32:12 Subject Re: [Sathvik-Rao/ClipCascade] Clipcascade monitoring service constantly inactive on Android 14 (Issue #98)

Kahz3l left a comment (Sathvik-Rao/ClipCascade#98) https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3236034083 Sorry for the long silence, I tried several things now on my Samsung phone:

Limit size of Clipboard to 900,000 Server is in P2P mode I have not disabled the notification because it is actually useful to know that it stopped working (the service is actually really killed) — Reply to this email directly, view it on GitHub https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3236034083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5R3UKAEZ7FSKQA5XYT2ND3P76XZAVCNFSM6AAAAABZLJ7RI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZWGAZTIMBYGM. You are receiving this because you were mentioned.Message ID: @.***>

swbb avatar Aug 29 '25 10:08 swbb

It doesn't work for me unfortunately, if it tells me the service is inactive, it is really killed and does not work. I also tried using the serverside mode with CC_P2P_ENABLED=false, this also does not work.

Kahz3l avatar Aug 29 '25 11:08 Kahz3l

More info for you. When the android program has a notification that it stopped, The android phone still can receive copied text from my PC However, when I copy text on my android it does not transfer to the PC.

------ Original Message ------ From "David Bernstein" @.> To "Sathvik-Rao/ClipCascade" @.> Date 29.08.2025 12:24:44 Subject Re[2]: [Sathvik-Rao/ClipCascade] Clipcascade monitoring service constantly inactive on Android 14 (Issue #98)

The message pops up that it is inactive, but when I paste something it still works .....

------ Original Message ------ From "Kahz3l" @.> To "Sathvik-Rao/ClipCascade" @.> Cc "swbb" @.>; "Mention" @.> Date 29.08.2025 09:32:12 Subject Re: [Sathvik-Rao/ClipCascade] Clipcascade monitoring service constantly inactive on Android 14 (Issue #98)

Kahz3l left a comment (Sathvik-Rao/ClipCascade#98) https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3236034083 Sorry for the long silence, I tried several things now on my Samsung phone:

Limit size of Clipboard to 900,000 Server is in P2P mode I have not disabled the notification because it is actually useful to know that it stopped working (the service is actually really killed) — Reply to this email directly, view it on GitHub https://github.com/Sathvik-Rao/ClipCascade/issues/98#issuecomment-3236034083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5R3UKAEZ7FSKQA5XYT2ND3P76XZAVCNFSM6AAAAABZLJ7RI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMZWGAZTIMBYGM. You are receiving this because you were mentioned.Message ID: @.***>

swbb avatar Aug 29 '25 11:08 swbb

Can you add version info to the app page? I just started using ClipCascade a couple days ago. Ran into this same issue. Came here searching and found this posted issue.

I was nearly sure I had the latest version. But had to download it again to be sure.

Samsung Galaxy Z Flip 6 here.

JeffCrum1 avatar Sep 11 '25 05:09 JeffCrum1