Background tasks extension 2.0 A [Experimental]

An extension to create components, call functions or tasks in the background and when the app is alive with various features!

Extension version --> 2.0 A


Beta testers and helpers



Documentation

Here are the documentation of all the available blocks. If you have found a mistake then let me know about it. :smile:

  • Creating a component

    04.04.2021_11.01.36_REC

    Creates a component. No matter if the app is running in the background or the foreground. All you need to do is to specify the component source name and the name which will be used to invoke functions and do other stuff.


  • Creating a function

    04.04.2021_11.03.06_REC

    Creates a function of the component ID specified. Specify the component ID and the values. To access the invoked result use the 'invoke:result' value to store it in a variable and then access it using the extra value block.


  • Calling a function

    04.04.2021_11.03.36_REC

    Calls the created function using the function ID. Make sure the function of the specified ID is created before using this block.


  • Call a function multiple times

    04.04.2021_11.04.04_REC

    Block to call a function specified number of times with the interval between each calls. Make sure the function of the specified ID is created before using this block.



  • Making a delay

    04.04.2021_11.20.39_REC

    Does a delay in Milli seconds. You can use this block between functions and task. This will not effect the UI of the application.

  • Making value from code or text

    This block helps you make value from invoke result, do things. The value from it will be executed at the invoke function.

  • Resolve activity

    04.04.2021_11.22.14_REC

    Its strongly recommend to use this block. Mostly on Chinese devices which requires additional permission to run tasks in the background.

  • Finish task

    04.04.2021_11.22.39_REC

    This block which will report the Android system that the service and tasks are completed. Gives advantage by saving the system’s resources.

  • Start the service

    04.04.2021_11.23.32_REC

    Starts the service with the given service ID. The instant is the time which you can from clock component. The services will be executed one after the other and not at once.

  • Cancel the service

    04.04.2021_11.24.02_REC

    Cancels the service by the given service ID.

Extension

This extension was made possible for other platforms by Rush:

Open source

Download

The extension is free for everyone to use.
Extension must not be redistributed in other communities.

Other versions

1.0 - First version
Background-Tasks.aix
[Google drive - BackgroundTasks]


1.1 Version
Background-Tasks.aix
Google drive: Background-Tasks.aix

Version 1.2

Background Tasks 1.2 (382.9 KB)
Google drive: Background Tasks 1.2
Extension for others supportive:
https://background-tasks.vercel.app/

Its recommended to use the old version for UI related things.

Extension specially for AppInventor: com.kumaraswamy.tasks.aix (385.5 KB)

Extension for others supportive: Kodular community

About extension

If you've found any bugs, issues or something wrong in this post then lemme know about it. Suggestions and improvements are appreciated :wink:

Thanks,
Kumaraswamy B.G

40 Likes

Now I can use best extension in my app rather than a paid one :slightly_smiling_face: thank you for the extension may god bless u :cat::heartbeat:

2 Likes

@kumarswamy Best Extension for till now

2 Likes

Can you tell me one thing (kodular)

Can I run My Exoplayer in background exoplayer stops after some min

You should be able to run any components which don't refuse to start in the background. I will confirm it because my extension works everywhere except kodular (I am not sure why it's like this).

Post: my extension doesn't support Kodular since there are some issues related to services.

No, you need a Foreground service for this as this has to do with Doze mode and has nothing to do with a Background service / task.

3 Likes

See also here:

2 Likes

Wonderful!

2 Likes

Rush may solved or edit Manifest?) :+1:

1 Like

Hello Xoma, will this extension work in Kodular?

He already answered it...

The extension is innocent and now anybody can feel free to use it :slightly_smiling_face: without any problems. The extension will receive regular updates and more features.

@Moderators please delete all the off-topic replies :slightly_smiling_face: to avoid creating mess or hate replies.

3 Likes

2 posts were split to a new topic: Why does this warning appear This topic will close 7 days after the last reply

May change this icon to another,? thank
Screenshot_20210320-201313

2 Likes

@Chudesa_Bojii Yes you can change it but not for now at least the next version would support various things and customizable features :grinning:

2 Likes

This is very interesting.

Could you also post the .aia export file for your sample, to help connect
the three component blocks you refer to

  • NotificationStyle
  • TinyDB1
  • Notifier1
    to the app's Designer components?
1 Like

BackgrounThings.aia (359.1 KB)

Here is the test AIA file. I have tested my extension on Android 9.1 and Android 10. Please let me know if you face any issues :slightly_smiling_face:. And I don't understand what your saying in the last line?

2 Likes

Cool extension! Thanks for the aia :slight_smile:

2 Likes

I have also tested it in Android 11 too, and it works just fine :)

2 Likes

Finally :sunglasses: now my app run in background amazing :blush: thank you very much :slight_smile:

1 Like