ItoO Tasks is a specially built extension (completely different from the old one) that makes such Environment that it would be possible to allow things like Procedures/Variables to be accessed when the App is In Background.
Blocks
Here are some of the blocks, blocks that arent mentioned are intended for Test only purpose.
Initialize
Initializes the service that would run after @latency.
Name is the (main) procedure name that will be called.
Of “runWhileActive”, if set to true, service executes even when the App is Active.
When called, ends the service, this needs to be used inside the service.
Registers the event name like Button1.Click
and the @doCall is the procedure name with the arguments that will be called.
- Note that, before you use any component here, any of the block of the extension must be called first.
Cancels the service.
Block for periodic jobs, see release 1.2 here.
From this block, you will be able to call a procedure by name, same as initialize block but when the device gets switched on/phone restarted.
A block to remove the boot system set (resets it).
Returns true if the app was/is active when the service was started.
If set to true, the extension will use Alarm Manager API which is more accurate than the default API. This block is for Periodic tasks (InitializePeriodic block).
Use this block when Use Alarm API block property is set to true. This block is to specify the first trigger (in ms) of the periodic table.
An example where the procedure Gets the text from the Web componet and shows it as Notification.
Video
Sponsor
This extension was sponsored by Akku - Battery Manager
Go check that out!
Extension
Thanks to @dennis_littawe1542 @Pradevel and others for testing the extension
xyz.kumaraswamy.itoo.aix (26.7 KB)
[!] Extension is Not open-source
[!] DO NOT ask for just help, I am not going to create all blocks for you.
[!] Research/Try it before you ask “is this possible”
[!] Avoid messaging me, rather create a new topic.
Links
Resources
Show notification on boot
Resource
Example block to run a procedure and show a notification when the phone is booted/switched on.
Latest Version: [FREE] Background Tasks: Itoo - Extensions - MIT App Inventor Community