[Discontinued] Background Tasks [4.1] 🥳

Check out this example please.

I got that! , But why it is not running in background?

My Blocks:

The finished task is supposed to be called in the background or it can’t be used that way. You have to use it in a way of tasks.

And your blocks are wrong.

  • Name (function) means the component name or Id.
  • Function name is the block or method name in Java which you want to call or invoke.

ClockTimerFires, clockTimerInterval are just invalid Ids that will never get executed.

@Xoma So what i do to execute them? Give me the way to success.

Just follow up my suggestions :)

1 Like

But the clock interval is not set it’s running too fast I set it for 5000ms, but it runs faster than that.

And my app is not showing for resolve activity’s autostart.

App Name :- Tasks
but not showing in the autostart list

Could you try to enable it manually by going into the app setting?
No, it’s not possible for the clock to go faster than the interval.

It’s not there!

Proof:

My Blocks:

I set the time interval for 5000ms

Here you have mistyped “TimerInterval” as “TimeInterval”. One letter is enough to make the process faulty :wink:

4 Likes

Now can we create kodular widget?


i please need a help here im trying to implimate the version {3.3 A}
but im getting notification even when the condition is not met.
where im doing wrong?

@Xoma Great work, thank you .

1 Like

I think You Not Call your function with id
And this

2 Likes

@eagle_vision
feild2 is invalid value in extra function (feild2.contains("working")). Change it to val2.
An error will be logged in the background. And whenever an error occurs, the extension treats the result as false.
Also, you’re using multiple functions in one single block.

The above is the correct use if you are comparing and calling functions. Also, make sure to put and remove spaces accordingly.

1 Like

Widgets cannot be created with the extension.
Also, we will also need to change the manifest elements (if I am not wrong).

1 Like


thank you
i tried this but its not working even when i have the value “working” im not getting notification

Could you try using the normal notification component?
Are you using notification style extension?
If it did not work, PM me the AIA.

thank you i will try it

1 Like

im only seeing notifier components please where is the Notication truly i cant find it

Hmm… if to use the notification component (normal) then you have to account → settings → enable experimentally.

And this may be creating an invalid function error in the background…