Thanks @Kumaraswamy! 2 follow up questions for you:
When I swap Itoo v4.1 for v3 on the test project, I see that test_clk_fxn is able to trigger testBroadcast_fxn. Any ideas why the behavior is different between the versions?
Thank you for clarifying that service threads aren't meant to trigger a broadcast that was registered by the service. This is how I was kicking off a procedure asynchronously/on a different thread without holding up my main service thread back in v3. Do you have any recommendations on how I should go about that with v4.1? Maybe createTask?
Thank you! I clearly misunderstood broadcasts; I appreciate you explaining. Leaving broadcasts aside, do you have any hints/recommendations on how I can achieve multithreading such that I can have a function run on another thread without blocking the originating thread?
An example of what I am trying to do: I have a timer tick event that Itoo listens for. I want to make sure that the timer tick callback function can finish quickly, so that it's ready for the next clock tick. To achieve this, ideally, I want to spawn off function calls from inside this callback to run on other threads, so I am not holding up the clock tick callback procedure.
I understand what you want to achive
With the current system in place, this is not possible.
Few months ago, I was experimenting with a Automatic Async extension that lets you easily manage and dynamically spawn many threads, however it was not released.
Alternatively, you can use AsyncProcedure extension written by Ewpatton, that lets you call procedures on a different thread.
Hey, i made an extension with chatgpt that has a singular event that checks the device's time and triggers a notification at a certain time and it seems to be working. How do i integrate this with itoo? Should i use foreground or background?
Usually you would use the alarmmanager of the device to get triggered at the defined time... my alarmmanager extension does exactly that... App Inventor Extensions: Alarm Manager | Pura Vida Apps
That solution is battery friendly and does not need itoo to get triggered...
Other solutions drain the battery, because these have to check regularly, if it is already time to trigger the alarm.... choose your solution wisely...
i might buy your extension if i fail to build mine that simply has to trigger notification style, but i don't have Paypal available rn, and i would prefer not to pay in cryptocurrency, could you setup something like a Stripe account?
Hello, I update itto to the latest 4.2 but the problem continue with android 14 U1TDS34.94-12-7-6 in moto g54 5G,
when I click on Start buton I get a simple error saying my app "keeps crashing"
with itoo 4.0 and 4.1 the app opens and closes immediately
Hi @Kumaraswamy, Thanks a lot for your great work, now I am planning to create an app to check wifi when connected if it asks for login details or not, I have created a background task which is to send notification when wifi is connected to any network when the app is closed and once you click on the notification the app opens, unfortunately it is failing to accomplish the task in the background though it shows that it is working but nothing happens and when I try the same in the UI it works normally when I close and open wifi or toggle it the required notification appears normally, I don't know what is the problem.