Bug 401028 - Unnecessary persistent notification "Not connected to any device"
Summary: Unnecessary persistent notification "Not connected to any device"
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: 1.10
Platform: Android Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 10:05 UTC by Alexander Potashev
Modified: 2023-01-08 12:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2018-11-14 10:05:27 UTC
SUMMARY
Unnecessary persistent notification "Not connected to any device".

The KDE Connect's persistent notification is not necessary and should be hidden when no devices are connected. It is wasting space in the Android notification area.

Now I have to "force stop" KDE Connect through Android settings to get rid of the persistent notification after every time I use KDE Connect. I use KDE Connect occasionally and for short periods of time, generally to transfer files.

STEPS TO REPRODUCE
1. Run KDE Connect on Android
2. Look in the Android notification area

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 ximi 2018-11-14 10:13:46 UTC
Hello!

I'd like to add 2 things here:
- if you remove this notification from the app settings, android (8.1 at least) will add another notification to tell you that KDE Connect is wasting battery
- I recently installed Clementine (the music player), and the remote on my smartphone. Their app works the same as KDE Connect (background service via a notification to keep the connection). Though, inside the app, you have a "Quit" button to completely turn it off (both the app and the background service).

For me, the "Quit" button would be a nice feature.

PS: Thanks @Alexander Potashev to point me here from https://bugs.kde.org/show_bug.cgi?id=393840#c5 where I've added a comment.
Comment 2 Albert Vaca Cintora 2018-11-14 10:46:22 UTC
This notification is mandatory since Android 8 for background services. If we don't have it, the OS will kill the process and we won't be able to discover and connect to other devices.

Note that you can hide the notification.
Comment 3 ximi 2018-11-14 10:47:34 UTC
Please, read my comment and consider the "Quit" button...
Comment 4 6zyguo 2023-01-08 12:03:00 UTC
(In reply to Albert Vaca from comment #2)
> This notification is mandatory since Android 8 for background services. If
> we don't have it, the OS will kill the process and we won't be able to
> discover and connect to other devices.
> 
> Note that you can hide the notification.

Wondering if there's anyway workaround to keep KDE alive but notification off.