[FREE] Background Tasks: Itoo

Itoo 2

The newer version of Itoo now has updated ItooX framework which runs more reliably across all platforms, devices and Android versions.

Services

Itoo supports two types of services.

  • Foreground

    • keeps the service alive throughout the session without interruptions.
    • a permanent notification will be displayed throughout the session from Oreo.
  • Background Task

    • unlike the foreground task, it is executed on a different process.
    • vulnerable to unexpected / sudden shutdown by the system (especially Samsung, Xiaomi devices).
    • the running task should be completed within 10 or 30 minutes depending on the Phone brand.
    • it is possible to restart the service from then, by setting the restart property to true.

Blocks

  • Create a foreground process

    process

    • A block that will create a singleton instance of the foreground service.
    • the process never ends, unless killed by user / system.
    • procedure: procedure to call when foreground is started.
    • title and subtitle: right now, the extension supports to only change title and subtitle of the foreground notification.
  • Stop the foreground process

    stop

    • a block to stop the foreground process externally.
  • Create a Background Process

    background

    • A block to create a normal background service that should finish within 10 or 30 minutes.
    • latency: the time delay before the start.
    • jobId: the id of the background service.
    • procedure: procedure called when the service is started.
    • restart: specify true if the background process should be looped.
  • Stop the background process

    stop

    • the block is used to stop the background process.
    • this block must be only used inside the background service.
  • Check if background process is running

    check

    • jobId the Id of the background service.
  • Cancel the background service

    cancel

    • jobId the Id of the background service.
  • Create with trigger

    • the above block calls a procedure when charger is connected to the phone.
    • the extension can also listen to actions, when the certain action is performed, the respective procedure gets invoked.
    • action: Intent action as a string.
    • procedure: procedure to call when the action is performed.
  • Register events

    events

    • eventName: component name and event name combined, like Clock1.Timer.
    • procedure: procedure called when the event is invoked with the args.

Version 2.1 Changes

  • Added methods to store values

    blocks(2)

    blocks(1)

    • They are like Tiny DBs of Itoo, these blocks can be used in the background services, especially for non-foreground services to store and fetch properties. They provide special connectivity between services and and the application realtime.
  • Added Boot Receiver Block
    The functionality has been reintroduced.

    image

Resources

Notification every second

Notification when charger is connected.

Framework

The framework (!not open source) is the core of the extension, it creates a custom environment, creation of components, handling of procedures and events.

Extension

Both framework and extension is closed source.

Download: xyz.kumaraswamy.itoo.aix (61.5 KB)

Donations

It takes a lot of time to develop, maintain and update the extension time to time.
Especially the itoo-framework.

You can support me via

Stripe, PayPal

Note

Do not ask for me to help you with preparing blocks, unless you have tried something.

Please do share what you have achived with the extension :wink:

Thanks!

30 Likes
Background Tasks extension [3.8 A] 🥳
Can I use the background?
Help with Time duration
Ping a web server every 10 minute
How do you use timerpicker for firebase to start/stop specific task?
Test low battery, advise by voice
Text to speech component in Background
How can we I get and compare the values of 2 tags in my database when firebase data changes?
Schedule fix desired time to control servo motor
How do I fix “There Was a Problem Parsing the Package”?
How do I use MIT app inventor's background task extension which helps the app to run in background?
Is there a way to do a task when an app is placed in the background?
Background foreground
[PAID] :round_pushpin: Location Service Extension
Keep the app open in the background
Check if value in cloud DB changed while app is NOT running and create push notification?
I am trying to read a string from a web page and compared the string.
How do you launch an app, close it and then come back to mine?
Page turner and locked screen
How do you make an countdown app always running?
How do you make app run in the background on minimize?
Need help sending notifications in the background over bluetooth
App just in Notifications visible sending remote media button keystrokes
Extension: Modified Notification Style to support Android 12 and above
Making a background app to rickroll people
Alarm control application
Que llegue una notificación si necesidad de aplastar ningún boton (Let a notification arrive if you need to press any button)
Keep the app open in the background
Menu or icons working over other apps?
📱 How to capture start and end times of a phone call and calculate total call duration
How can I have my app read the phone orientation in the background
Schedule an action
How do I run this app in background?
How do I run this app in background?
Aplicacion en segundo plano
Notifications pour application de chat
Vertical position recording
Keep screen on taifun tools
Can you tell how to use task extension to make screen run in background.
Screens or Components
How do I use MIT app inventor's background task extension which helps the app to run in background?
Background Tasks extension [3.8 A] 🥳

Awesome work @Kumaraswamy :+1:t2::+1:t2:

3 Likes

Great extension Thank you so much @Kumaraswamy

so by using this extension i can run a procedure on phone boot starts up ?

3 Likes

Did you read this?

4 Likes

Hi, am I missing something in my blocks?

I have just checked Developer Options --> Running Services and this background service is not listed there. I have make not optimized of Battery also.

You have to drag atleast a dummy Texting component into the monitorSMS before you call the "When" block.

Thank you Kumaraswamy. I did that but no luck. would you like to look into my aia once?
DSOMonitor.aia (29.4 KB)

3 Likes

Hello,
good morning,
I have a problem,
I have made the program, and it works to send a notification in the background, but after a few hours, it stops working.
I have tested it on two mobiles: Motorola and Samsung.
I attach my blocks in case I left something.

image

Thank you very much for your help.

Yes, there are two ways to solve it, completely disable the battery optimization of the app in the app settings and turn of phone battery optimization.

The other way uses a foreground service, i will soon release an update (in a week)

2 Likes

Ok, thanks

1 Like

Unfortunately, the video is not displayed with either Firefox or Chrome.

2 Likes

But for example, how WhatsApp does to receive messages (in the background) without showing any foreground?

They are whitelisted by the device manufacturer and they use the tools provided by the Google like GCM/FCM which are more reliable.

1 Like

Oh
Thanks :grin:

1 Like

not wok for me

Share your hardware version and your relevant blocks.

blocks
my block i'm using android 10.

1 Like

No, you cant show AlertNotice or any kind of UI from background.

So how work on boot please show an example.

I have to yet update the extension framework, it has not been updated since months.

1 Like