https://bugs.kde.org/show_bug.cgi?id=411018
Bug ID: 411018
Summary: Running a command from the Android app using a URL,
does not work anymore on the background from Android
10 (Q) and up.
Product: kdeconnect
Version: unspecified
Platform: Android
OS: other
Status: REPORTED
Severity: normal
Priority: NOR
Component: android-application
Assignee: albertv...@gmail.com
Reporter: jolanren...@gmail.com
Target Milestone: ---
SUMMARY
Running a command from the Android app using a URL, does not work anymore on
the background from Android 10 (Q) and up.
STEPS TO REPRODUCE
1. Have an Android device running Android Q beta 6 (or higher when available)
2. Connect to a pc, add a command, long press the command to copy the URL
3. Have an automation app like "Tasker" open the copied URL in automated manner
OBSERVED RESULT
When Tasker is opened, the URL works, KDE Connect opens and the command is
executed.
When Tasker is not opened in the direct foreground, the URL can not be opened
as Android Q now prohibits apps from opening activities from the background.
EXPECTED RESULT
On older Android versions, opening an activity from the background (as is the
case here) worked fine, but on Q nothing happens when the URL should open.
SOFTWARE/OS VERSIONS
Android: 10.0 (Q)
ADDITIONAL INFORMATION
A good and working solution would be to implement the Takser (Locale) API which
allows a couple of automation apps (where Tasker is simply the most popular
one) to send commands in automated manner to KDE Connect.
Information can be found here: https://tasker.joaoapps.com/developers.html
What is required, is an "action plugin", which broadly requires an activity
where the user can choose which command to execute and a broadcast receiver, to
execute a set-up command when Tasker sends the signal.
https://tasker.joaoapps.com/plugins.html
What works even faster (but is Tasker specific) is using an IntentService in
addition to a broadcast receiver.
This is explained here:
https://tasker.joaoapps.com/pluginsservicesmigration.html
--
You are receiving this mail because:
You are watching all bug changes.