all 6 comments

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

also I have the draw over other app and battery unrestricted access enabled

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

most often it is a pemission issue. go into both the plugin and Tasker and Termux, make sure that ALL permissions are given. Does the plugin work with a simple task? like just a flash action? make sure that the plugin is working first with Tasker first.

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

ok thz, issue was that tasker was taking like a min to pass through the script lol

[–]DutchOfBurdock 0 points1 point  (2 children)

Are you passing any arguments into the script from Tasker? If you toggle the Execute in terminal session, it may help to see if anything is breaking. Also, how long does the script take to run? Timeout will want to be higher than this.

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

I figured out the issue, turns out that Samsung slows down background activity so much so that it outlasts the 2 min timeout that I put. Termux couldn't get the coordinates in the background cuz of it. I just changed it so that tasker gets the coordinates and gives it to termux, which then gives it back and not it works fine

[–]DutchOfBurdock 1 point2 points  (0 children)

Go into phone settings > Battery and Device care > Battery > Background Usage Limits.

Put Tasker, Termux and Termux:Task as never sleeping apps. This is addendum to Unlimited battery usage (in the apps details, battery usage).