Open Source • Background Tasks: Itoo 🚀

As a first attempt to use the Itoo extension I wanted to send a message 'ok5' after 5 seconds followed after another 1 second by the message 'ok1'. And again in cycle ok5 and ok1. I attach the blocks that do not work. Any suggention?

I never said this
Use an extension which was made to run in the background, which is App Inventor Extensions: SMS Receiver | Pura Vida Apps
You also can try App Inventor Extensions: Texting | Pura Vida Apps to read all received messages and extract the latest one

Taifun

Instead of the CreateTask method try the CreateProcess method to create a foreground process

Taifun

Look at the screenshot (previous post), i am using the built in texting component and not the puravida texting component.
I was only speaking about the built in texting component (blocks) in my previous post.

Is this supposed to work (previous post)?
If yes please help me troubleshooting it.
If no then i can shift to pura vida texting extension (which is not confirmed to work in background)

No
See again the already given answers

Taifun

if am storing latitude and longitude in the background like that so how can i get that value in the background to make the location updated in the background?

To get location data in the background, you need an extension, which is able to receive location changed events in the background
The locationservice extension is able to do it

Taifun

I made an application to send smartphone battery percentage data to Arduino via HC-05 from smartphone to Arduino. But it always fails to send data every second automatically when trying to apply the Itoo extension to my blocks, while if I don't apply Itoo the application runs normally and sends data every second but can't send data in background


.

The Timer event of the clock does not have an argument, same for your procedure time

The BatteryChanged event does have 7 arguments, same for your procedure changed

Taifun

1 Like

Thank you very much, finally able to send data from the app to the HC-05 every second accurately in the background and when the screen is locked.

I will come back here again.

1 Like

Hi there is any clue why I get this message? (I disabled all the block what connect to Itoo but still got this)

Hi, this is an error that occurs while in the companion mode if the Itoo component is added to the screen. I've taken note of it to fix in the upcoming releases.

2 Likes

Hi again. I just test my code and I don't know whats the problem.
So when I push a button I save a data to the cloud, but when it is a bacground task i got back nothing ("idk").

It would really help very much, if

  1. you could switch the language to English before taking a screenshot, and
  2. you could provide a readable screenshot in hjgh quantity

Thank you

Taifun

Sorry about that

Hi, where are you storing the value using Itoo's Store Property? You seem to be using a different method on Gomb click...

I store the information in clouddb. If that Itoo block what I used can't acces to Clouddb then please show my how write get data from it

Use the CloudDB block inside an Itoo process!

1 Like

Itoo 4.4.2

  • Fixes an Itoo error that makes the app un-testable in the companion mode.

  • Reduced Itoo Service foreground notification priority (from maximum to normal)

    One can still adjust the notification properties of the Itoo service by updating the notification Id (123321) using the Melon Notification extension.

xyz.kumaraswamy.itoo.aix (92.2 KB) (V 4.4.2)

1 Like

That is mean we can test itoo in companion
Or you just solve the error to not show when we are using companion?