Sathvik-Rao / ClipCascade

ClipCascade is a lightweight utility that automatically syncs the clipboard across devices, no key press required.
GNU General Public License v3.0
442 stars 5 forks source link

Foreground service not running #39

Open applesoff opened 1 week ago

applesoff commented 1 week ago

Screenshot_20241122_182306_ClipCascade

The app randomly stops running. Any way to fix this?

Sathvik-Rao commented 1 week ago

Hi @applesoff

Which Android version are you using? What is your phone model? Are you using the latest docker tag and latest android app? The only time it stops running is when restarted/battery optimization. When Android terminates the foreground service, the current implementation does not restart it automatically. If there is a way to address this, I will try to implement it. However, for it to start automatically, the trigger must come from Android itself.

applesoff commented 1 week ago

Android 14 oneui 6.1 Samsung galaxy s21 Latest versions of both server and app Optimization is disabled so it can stay running. No restart occurred.