[Discontinued] Background Tasks [4.1] πŸ₯³

Then what would be the best way to do this?

I don’t really understand what you are saying.
You could use periodic tasks.

If you want it less than 10 minutes, you can use two services. One for delay of 10 minutes and the other one for 24 hours periodically.

2 Likes

Basically I want to send notification everyday at 9:30am

1 Like

Yeah possible, use periodic tasks?

2 Likes

Oh, I understand the problem now.
Please wait some time.

2 Likes

Background Tasks 3.5 A

Feature request

  • Alarm

    Alarm

    A block to start the service with the exact instant provided. ID is the service Id that will get started when the alarm is fired.

  • Repeating alarm

    18.07.2021_14.24.26_REC

    Sets the repeating alarm for the service with the Id. Time is the instant. Interval is the time between each repeating alarm.

  • Cancel alarm

    18.07.2021_14.26.14_REC

    Cancels the pending/ongoing alarm. Also, cancel the service by CancelTask block.


Demo blocks

Blocks to show a notification with alarm blocks.


Download extension: com.kumaraswamy.tasks.aix (467.4 KB)

10 Likes

nice keep it up

3 Likes

Titan Geek, now you can use an alarm to do the thing.

Let’s say you want to show a notification at 9:30 AM.
If you just want to show it once (exact moment) then you can use the Alarm block.

If you want to start a service at the exact time but with repeat service, you can use the RepeatingAlarm block.

You need to pass the time, and the interval (if needed) to it. The service will again start at 9:30 AM.

2 Likes

The 3.5 version came, but no AutoStart option visible for the app.

Vivo 1920

I am still looking for a solution.
But, if your app is downloaded from the Play store, auto start maybe enabled automatically.

1 Like

Great Thank you for this one.
I will test and report.

1 Like

What autostart?

1 Like

Auto start is an additional permission that manufacturers like Xiomie, Huawei or in any Chinese phones has. Services requires this permission if your service is non-foreground if you want to run the service also in the background.

Autostart will/may be automatically enabled if your app is installed from Google play according to some articles.

3 Likes

Nice update, Thank you. I noticed 1 thing. RestartAfterKill does not work with alarm

Nope. I have tasker installed on my huawei from App store and I had to enable it manually.

Hello, i want to call Airtable values in background every second. and send notification f new value is added. Please Tell me How can I Call Airtable Values. Please Help :cry: :tired_face:

Why every second? What is so important that you have to do it so often.

3 Likes

Yes. Because the service is being called alarm receiver. The value will be always set to false.

Ohh okay.


Yeah. If called every second, the system will just stop the service from overusing resources after some time.

You can use period tasks for this with a minimum interval of 15 minutes or alarm tasks with a minimum interval of 1 minute.

You may, however, use the clock component for the 1-second interval but this is not recommended for very long running tasks.

Ah ok. So the repeating alarm useless if it dies as soon as the screen goes off basically.

Yeah, it is useless to use with an alarm. You can use alarm repeating block instead.

What do you mean by this?