Launch app does not work

116 views
Skip to first unread message

abhijith kumar

unread,
Dec 11, 2019, 10:49:53 PM12/11/19
to Tasker
Hi guys, I have been trying to launch an app at a specified time but it never works. To check the issue I have set up an alert to go off when the profile is triggered along with the launch app action. But sure enough the alert is displayed but the app won't launch. Thank you for the help.

I am running on miui 11 and the tasker is v5.9

Steve L

unread,
Dec 12, 2019, 3:29:19 AM12/12/19
to Tasker
There are others on here that will probably be able to help you better than I can, but some things to check:

1) watching the task run manually, do you see an error drop it out of task?
2) What do the Tasker logs say? (3 dots, more, run log (may have to turn on then run log).
3) can you set something to alert you after the app should have launched? It may not rin if the app isnt launching, but it is one more way to test it.

The other item that may provide a clue to the experts out there is what app are you trying to launch?

Rich D

unread,
Dec 12, 2019, 5:16:32 AM12/12/19
to Tasker Google Groups Post
What app are you trying to open?
Did you use the app selector within the action edit to select the app or did you hard code it in?
Try a different app and see if it will open that one.



To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one). 

On older Tasker versions you might need to disable beginner mode in the Tasker preferences. Beginner mode has been removed from the latest Tasker release. 


Message has been deleted

abhijith kumar

unread,
Dec 12, 2019, 6:00:59 AM12/12/19
to Tasker
Hi Steve, please find below my comments
1. The app is launched when run independent of a profile.
2.
Below is the log, launch app shows OK

20191212 16.16.41 P Active ID46 LaunchApp
20191212 16.16.41 E Start ID0:0.0 TaskService
20191212 16.16.41 T Running ID44 AppLaunch
20191212 16.16.44 A OK ID44.1 AppLaunch.Wait
20191212 16.16.44 A OK ID44.2 AppLaunch.Flash
20191212 16.16.44 A OK ID44.3 AppLaunch.Launch App
20191212 16.16.46 A OK ID44.4 AppLaunch.Wait
20191212 16.16.46 A OK ID44.5 AppLaunch.Flash
20191212 16.16.46 T ExitOK ID44 AppLaunch
20191212 16.16.46 E Stop ID0:0.0 TaskService
3. Yes I have put a flash before and after the launch app. The flash is shown.

abhijith kumar

unread,
Dec 12, 2019, 6:05:59 AM12/12/19
to Tasker
Hi Rich
The issue does not seem to be dependent on any particular app.all are failing.
And I am selecting the app within the action editor.
Below is the XML

<TaskerData sr="" dvi="1" tv="5.9">
<Profile sr="prof46" ve="2">
<cdate>1576145378117</cdate>
<edate>1576147408605</edate>
<flags>8</flags>
<id>46</id>
<mid0>44</mid0>
<nme>LaunchApp</nme>
<App sr="con0" ve="2">
<cls0>com.samusko.bohdan.schultetable.ui.splash.StartActivity</cls0>
<flags>2</flags>
<label0>Sсhulte Table</label0>
<pkg0>com.samusko.bohdan.schultetable</pkg0>
</App>
</Profile>
<Task sr="task44">
<cdate>1576145145923</cdate>
<edate>1576148652799</edate>
<id>44</id>
<nme>AppLaunch</nme>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">The task is executing</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.google.android.apps.docs.app.NewMainProxyActivity</appClass>
<appPkg>com.google.android.apps.docs</appPkg>
<label>Drive</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">The app did not open</Str>
<Int sr="arg1" val="0"/>
</Action>
</Task>
</TaskerData>
Message has been deleted
Message has been deleted

Bernd Dr. Neumann

unread,
Dec 12, 2019, 9:21:53 AM12/12/19
to Tasker
HI,

I am running Android 10, miui 11 and tasker 5.9 too and I have had the same issue.
Battery management is switched off, mobile is rooted and tasker has superviser rigths.

Tasker can launch an app or shortcut only if tasker is running in foreground.
The app or shortcut will not be launched if tasker is in background.
There is a special permission to allow tasker to launch while tasker is in backgound. It is: SYSTEM_ALERT_WINDOW ( or Display over other apps ).

Go to Settings, Apps; select Tasker and allow Draw over other apps.

Good luck ;-)

abhijith kumar

unread,
Dec 12, 2019, 11:53:47 AM12/12/19
to Tasker
Hi Bernd, thank you very much for your help. It worksssss!!!!!
Well I had granted "draw over other apps" to tasker. But as you had mentioned, in miui you have to grant tasker permission to launch apps while in background.
So I allowed "Display pop-up window while running in background" and voila!!!!!

Problem solved!!!! Thank you all for the help :)

PS : I have Android 9, miui 11 tasker 5.9 and it's not rooted.

Reply all
Reply to author
Forward
0 new messages