[Discontinued] Background Tasks [4.1] 🥳

does this extension supports extension or only components also???

2 Likes

extensions also

3 Likes

A new update for the extension will be released tomorrow or in a few days. :grin:

3 Likes

Is there any chance you will update these symbols (<,<=, >, >=, !=) to compare numbers? :grin:

1 Like

Actually it’s the correct/efficient way to do things.

The current way also allows you to do more things rather than just comparing values.

Like you can compare the Java statements and the event value

System.currentTimeMillis() >  Integer.parseInt({$0}) :: function(some-id)

As the example above you can do more things than only comparing with constant values.
Here we check the time accordingly and call the value.

2 Likes

Background Tasks 3.2 A

As time passes… The extension gets better and better :smiley:
So here is another update for it!

There is a total of 3 new blocks, 3 bug fixes and 3 changes!

(Click on the image to expand it.)



  • New blocks

    Reset

    • Clears the task list (the functions/create components) or resets them.

    30.06.2021_21.05.52_REC

    • Returns the list of currently running or pending service IDs list.

    30.06.2021_21.07.29_REC

    • When the service is killed, this property block will be to indicate if the service needs to start again. The restart time depends on the System.


  • Fixed issues

    • Fixed an issue where if you had entered any function that has Caps in it, the function would be failed to call.

    • Fixed an issue where the service would stop after some time after the app’s screen goes off.

    • Now the service will run/start even if the phone is booted or restarted.



  • Internal/Blocks changes

    • Finish task block updated with the boolean value to indicate if the service should start again.

      FinishTask

    • A new way to call functions and return their invoke or the return values directly. This can be used through the MakeExtra block as (invoke:[FUNCTION_ID])



    • Now the extension does a quick validation of tasks to prevent empty tasks from being sent to the service.



Download the new version (3.2 A) com.kumaraswamy.tasks.aix (455.2 KB)

If you find anything wrong, please let me know :smiley:

10 Likes

The new repository for the extension’s sources are here :partying_face:

The extension is created with Rush by @Shreyash!

6 Likes

Maybe that’s why you are Rushing :running_man: to give the Extension new updates :grin:

4 Likes

Please, what is wrong here?

I’m trying to retrieve a source link via the web component, then compare if the value contains “not found” it makes a notification, and if it doesn’t it does another one…

** I tried the method with firebase, and it worked…

Are you using the latest version of the extension?
Also, you must use CreateComponentsOnUi and set it to true because you’re using the clock component.

If that did not work, you can PM me the .aia or post it here, I’ll need to debug it.

Yeah because firebase component can be created in normal thread in the background.

How to use Show Alert Function From Notifier With This Extension?

Is it possible to simulate a screen click from the same application or another (without using browser built-in javascript) with this extension?

You can do it but in the Background but in some devices, UI related components are not gonna work. App may crash.

No, the extension cannot do such things. If you managed to do it. It will only work when the app is alive.

1 Like

How to do it? I want to test it.

Why don’t you follow some examples?
I cant reply everyday giving direct solutions :sweat_smile:

2 Likes

I can’t understood any of them, Because I am new with Background Tasks Extension. Give Me An Example Of How to use it with Notifier Show Alert Function.

yes , 3.2 A

It’s already like that

Screenshot_4

Aia : t.aia (502.5 KB)

** note : when i use it without ( extra function ) , it work …

Ahh got it!

You first have you use HTML decode block on it. The data also contains new lines and special characters so therefore creates errors while parsing things.

(at escaping special symbols)

I’ll note this down and will be fixed in the next version (3.3).

As of know, you should use things like direct APIs.

component_method

but now i can to try this , right ?

Yeah, you should try using that.