Hi there, as an almost newby to tasker I'm a bit confused now.
I'd like to automate a bunch of outdoor smartphones to make them recording autonomuous for some days, following a certain time schedule (E.g.record every day from 6.00 a.m. to 10.00 a.m.).
This worked fine with my Android 9 and 10 phones (10 Oukitel phones, Model "WP6"), using one Task for configuration of the the repeating start time and other tasks for triggering a recording app (Hi-Q recorder) just in time.
But now, since I tried to use some newer outdoor phones (Oukitel WP18) under Android 11, my Tasks won't work in background any more (when the phones screens are unlocked, the Task does work). Here's the part of the Task, that sends the intent to Hi-Q Recorder:
<TaskerData sr="" dvi="1" tv="6.0.10">
<Task sr="task31">
<cdate>1663110536690</cdate>
<edate>1663624057276</edate>
<id>31</id>
<nme>Start Rec Hi-Q</nme>
<pri>100</pri>
<stayawake>true</stayawake>
<Action sr="act0" ve="7">
<code>20</code>
<se>false</se>
<App sr="arg0">
<appClass>yuku.perekammp3.RekamActivity</appClass>
<appPkg>com.hiqrecorder.full</appPkg>
<label>Hi-Q</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">yuku.mp3recorder.action.RECORD</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">com.hiqrecorder.full</Str>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2">
<var>%RecDuration</var>
</Int>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">yuku.mp3recorder.action.STOP</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">com.hiqrecorder.full</Str>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>mw_action_alarm</nme>
</Img>
</Task>
</TaskerData>
When I start the Task on a Android 11 phone and Screen ON, it launches the Hi-Q app correctly, makes Hi-Q recording and stops recording after %RecDuration minutes.
When Screen is OFF (locked), the Hi-Q app is also lauched, but Hi-Q doesn't start recording.
As soon as I start the same Task on my older Android 10 phones, it will work correctly, no matter if Screen is ON or OFF.
To solve that, I tried to grant any permission I could find at android's and app's settings, w/ no success.
Even installed and applied the app "com.joaomgcd.taskerpermissions", with no success.
Any ideas much appreciated.
Cheers)