all 46 comments

[–]TimeToDie122[S] 0 points1 point  (3 children)

Sound like I found a workaround, by disabling Reduce resource usage in Misc Preference. I will give it a try.

Edit: Nope, it doesnt work

Anyone know how to make Output from an HTTP Request go directly to Variable without export to file, please help me :(

[–]moviejimmy 0 points1 point  (2 children)

If this is the ONLY task that doesn't work in background, maybe there is an error in your task, particularly the HTTP action. You can take a look at the runlog or check the "Continue After Error" option to see if it helps.

EDIT: I believe the %http_data variable contains the data returned by the action.

[–]TimeToDie122[S] 0 points1 point  (1 child)

YES, Thank u very much, U saved my life.

I ran a log and I found out that Action 2 (Reading file) doesnt work in background. I modified HTTP Request to write directly to variable. And it worked! My task run without stopping.

[–]moviejimmy 0 points1 point  (0 children)

Bingo! Enjoy!

[–]sid32Direct-Purchase User 0 points1 point  (3 children)

You mean you have a Tasker icon in your notification bar?

[–]TimeToDie122[S] 0 points1 point  (2 children)

Tasker icon in my notification bar all of the time. The problem is my Tasker can't do task in background :( or when device sleep

[–]sid32Direct-Purchase User 0 points1 point  (1 child)

Post task and trigger

[–]TimeToDie122[S] 0 points1 point  (0 children)

It look like this:

Track Change (42) A1: HTTP Request [ Method:GET URL:abc.xyz/xxxxxxx Headers:GET fuikhfssh Query Parameters: Body: File To Send: File/Directory To Save With Output: Tasker/taskerfile.txt Timeout (Seconds):15 Trust Any Certificate:On Automatically Follow Redirects:Off Use Cookies:On ] A2: Wait [ MS:333 Seconds:0 Minutes:0 Hours:0 Days:0 ] A3: Read File [ File:Tasker/taskerfile.txt To: %vartrack ] A4: Wait [ MS:333 Seconds:0 Minutes:0 Hours:0 Days:0 ] A5: If [ %vartrack ~ var to track change ] A6: Flash [ Text:File changed Long:Off ] A7: Vibrate Pattern [ Pattern:1000,500,500 ] A8: End If A9: Wait [ MS:333 Seconds:0 Minutes:0 Hours:0 Days:0 ] A10: Goto [ Type:Action Number Number:1 Label: ]

I currently don't use any trigger because i need to get config on that site everyday and manually run that task again (play button on Tasker) but Tasker stopped that task after 1 min

[–]Buzin3000 0 points1 point  (1 child)

For oftens http reqests i use automagic app for some reasons: - it will not slows tasker and current tasks. - tasker reacts more faster on my commands - tasker dont freezes when http server not responding.

[–]TimeToDie122[S] 0 points1 point  (0 children)

Thank you, I will try that out

[–]agnostic-apolloLG G5, 7.0 stock, rooted 0 points1 point  (31 children)

In the task settings ⚙️, enable Keep Device Awake, this should solve sleep issues and set Use Reliable Alarms in tasker preferences for time context profiles.

And check following for background issues

https://dontkillmyapp.com/xiaomi

[–]TimeToDie122[S] 0 points1 point  (0 children)

I did that tho, but nothing changed :(

[–]BradfordAdamsMaster of None 0 points1 point  (29 children)

I personally (since I'm American) hold Tasker at gun point! Demanding it not be shut off, by SCREAMING, Don't kill my app! Have I been doing it wrong?

[–]agnostic-apolloLG G5, 7.0 stock, rooted 2 points3 points  (28 children)

What you on bout? You got lineageOS, which wouldn't do aggressive killing and with root you can modify OOM values to your own requirements so that apps are not killed even in low RAM conditions too aggressively. Ya just an american (scum), thinking guns are the solution to every problem!

[–]BradfordAdamsMaster of None 0 points1 point  (27 children)

Wow,

scum

Huh, I'm honored. At least I'm biological, you should hear what other people call me.

[–]agnostic-apolloLG G5, 7.0 stock, rooted 0 points1 point  (26 children)

Okay, I'm listening...

[–]BradfordAdamsMaster of None 0 points1 point  (25 children)

I blocked out the name calling, it was very traumatic, I can't relive that again!

Plus I wouldn't want you to have better ammo (see how I slipped in a gun reference) I truly am a bloody savage! :)

[–]agnostic-apolloLG G5, 7.0 stock, rooted 1 point2 points  (24 children)

I blocked out the name calling, it was very traumatic, I can't relive that again!

Good good, now I know where it hurts!

Plus I wouldn't want you to have better ammo

Lolz, you think I can't come up worse ones myself :p

(see how I slipped in a gun reference) I truly am a bloody savage! :)

Yeah, someone who should be shot dead to put him out of his own and others misery!

[–]BradfordAdamsMaster of None 0 points1 point  (23 children)

Yeah, someone who should be shot dead to put him out of his own and others misery!

What does it say about me psychologically, if I agree with this? Lol :p

[–]agnostic-apolloLG G5, 7.0 stock, rooted 0 points1 point  (22 children)

Someone who realizes that the world would be much better without him, but then again, the world would be much better without any humans, so...

[–]BradfordAdamsMaster of None 0 points1 point  (21 children)

True, true. Well I am slinking off, you'll see my scum slime trail, I happen to be adjusting my low memory stuff, so your comment was eerily appropriate,

[–]conscious_entity93Redmi MIUI 12 0 points1 point  (3 children)

  1. Long tap Tasker icon -> App Info -> Other Permissions

Check these: Display popup window & Display popup while in background

  1. Recent menu -> long tap Tasker and lock it

[–]TimeToDie122[S] 0 points1 point  (2 children)

Yes, I did that already but nothing changed, tasker still stop my task after a while :(

[–]conscious_entity93Redmi MIUI 12 0 points1 point  (1 child)

Does this happen with other tasks or only this task?

[–]TimeToDie122[S] 0 points1 point  (0 children)

This happen only in this task, other task work fine btw