Bug 409707 - Add an option to allow KDE Connect to run at Android start.
Summary: Add an option to allow KDE Connect to run at Android start.
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 7.x
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 03:55 UTC by vbhunt
Modified: 2019-07-18 18:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vbhunt 2019-07-11 03:55:52 UTC
SUMMARY

Add an option to allow KDE Connect to auto run at startup on the Android app.


STEPS TO REPRODUCE
1. Start KDEConnect on the Android device.
2. Reboot the Android device.

OBSERVED RESULT

I have to manually restart KDEConnect to reconnect to my computer and have no way of changing that.


EXPECTED RESULT

I would like to see an option in the app settings that allows it to run at startup. Yes, this means getting another permission, but only if the user checks the box for it to run. It could even be set to "off" by default so that the permission is only asked when activated.

I am working on getting up to speed on current Android development. Maybe once I've caught up, then I could work on such an option if someone else hasn't already implemented it?

SOFTWARE/OS VERSIONS
Android: 7.1.1 Build Z971V2.0.0B13 (ZTE Blade Spark)
KDEConnect app: 1.12.93 (according to FDroid)

Windows: N/A
macOS: N/A
Linux/KDE Plasma: N/A
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A 
Qt Version: N/A

ADDITIONAL INFORMATION
I was seeing many of the reported behaviors from other bug reports (especially bug #368438); however, that all seemed to stop once I set the persistent hidden notification (which is totally an Android OS issue). Additionally, the app seems to behave quite well when connected to a network that has no other KDEConnect device. The only thing I wish it would do that it doesn't is to run on Android startup. This is kind of important for me because my most common usage scenario is to find my phone from my desktop computer (Debian Testing--currently Bullseye) and also to get notifications from my phone on my desktop. If I forget to start the app, none of that can happen, unless it starts when Android does.
Comment 1 Matthijs Tijink 2019-07-18 18:11:39 UTC
KDE Connect should already start on boot. It might take a while (Android doesn't start everything at once), but it should work with a couple of minutes after boot.
Comment 2 vbhunt 2019-07-18 18:20:40 UTC
It hasn't started on boot since I upgraded from an Android Lollipop phone to my current Nougat phone. It might be because I've got the app installed to external storage. Moving it now and rechecking. Will post back in a few minutes to verify.
On Jul 18, 2019 12:11 PM, Matthijs Tijink <bugzilla_noreply@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=409707
>
> Matthijs Tijink <matthijstijink@gmail.com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |matthijstijink@gmail.com
>
> --- Comment #1 from Matthijs Tijink <matthijstijink@gmail.com> ---
> KDE Connect should already start on boot. It might take a while (Android
> doesn't start everything at once), but it should work with a couple of minutes
> after boot.
>
> -- 
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 3 vbhunt 2019-07-18 18:27:58 UTC
That solved it. Mark this as resolved. 

Summary for future people that may have this problem: make sure KDEConnect is installed in the phone rather than external storage if it doesn't autostart.