[Discontinued] Background Tasks [4.1] 🥳

Take your time, nobody expects you to work day and night. Its already amazing what have achieved in a short period of time. Thanks

3 Likes

If I want to get data from tiny db and show notification multiples times (Daily)
should I use this block? If yes then should I use it twice for each function?

Please take your time it’s amazing already

1 Like

Hi Titan,

Now, it’s better to use the clock component now.
ExecutingFunction block exists because, in the earlier version of the extension, it was not possible to listen to events like Clock’s Timer.

There are many examples listed, you can go through the posts from extension version 3.0 and you’ll find many examples like Showing quotes from the web, with intervals, working with Firebase, Tiny DB and notification.

1 Like

Thank you I used clock but I am not able to
Get Value from Tiny db
Then show notification
I am not able to create that flow.

Try this example.


Is this correct?

x is time after which clock should start firing

Yes, try with a small-time first. Also, use the block called CreateComponentsOnUI block and set it to true.

1 Like

Ok thanx I will try

I missed this

Working smoothly… :smiley: :+1:

1 Like

Good to hear that!

1 Like

What do you think is wrong here? :grin:

You do not need to use the decode blocks, in the next version, you could do things without any operations.

1 Like

Btw my app crashes when TimerInterval is 24hr
Should I create variable and fire timer every hour then add +1 to that variable?

If yes can extra function do this “add +1 to that variable”?

You mean, the service closes?
24 hours is a very long time I guess. A periodic process is needed to do this…

I’m still not sure what you mean by app crashing…? Does the service stop or the app closes?

Nope my app crashes
I get “app stopped working”

When does it crashes? When you start the service button?

Yeap just 1-2 seconds after clicking that.

Then it’s obviously does not look the fault of the extension, could you please show me your new blocks?

Same

86400000 ms is timer Interval that is 24hr

Last time I tested with 10,000 ms

I’ll need to debug it, could you please post .aia here or in the P.M?