Open Source • Background Tasks: Itoo 🚀

The default Texting component available which indicates when a message is received by using blocks such as
When message.received

Is also not working (no response) with the itoo extension.
Am i missing something during coding (blocks) or it is not supposed to work?

Help me with that

Read the documentation of the texting component about the functionality it provides in the background.

http://ai2.appinventor.mit.edu/reference/components/social.html#Texting

Obviously I would not waste any time in writing a sms receiver extension if it just worked without it.

Taifun

The Texting component's nature does not make it compatible with Itoo... Look at Taifun's advice.


This set of blocks with texting component works fine without itoo extension.
But when i want to run it in background with itoo it has no response.
According to @Taifun , if the blocks works without itoo extension, obviously it should also work with itoo, but according to @Kumaraswamy the texting component is not compatible with itoo.
If this is supposed to work, what am i missing?
Or am i limited to puravida texting extension (free) for background processes.

my app objective is to read the incomming sms, either at the instant of receiving or with a trigger to read the last sms from the phone sms history (all by free)

Yes. Let us know your findings.

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