Background with the itoo extension

Could someone tell me what’s missing from these blocks so that the application can run in the background with the itoo extension? I set it up this way, but it didn’t work.

You cannot do this. Ask yourself how your app, running in the background, can update the value of a label in your app, which is not present. Store the counts, then when the app is active, return the value to a label.

You just copied the blocks from the itoo 4.4 documentation without understanding how to create a process. Without doing this obviously it will not work.

You forgot to use the CreateProcess method to call your main procedure run

The rest looks fine, the ui_update procedure will be called only if the app is in the foreground and the user interface is available

You can do this starting from itoo 4 4
See the documentation here Open Source • Background Tasks: Itoo 🚀 - #697 by Kumaraswamy - Extensions - MIT App Inventor Community

Taifun