ItoO - Background Tasks [special] 🥳

Thanks!

I did it but I have a problem in background

The Web1.GoText it was not executed.

Only it fine in active mode.

When App active I see the debug alert first, second and third.
When App in background I see only the debug alert first and second.

Thanks a lot.

Can anyone here bring an aia that performs background action with this extension? To perform a simple operation, the main thing that I can understand how to work with the extension through the file

Hi, you have to use the “When” block to register the event with a procedure name that will receive the arguments :blush:

1 Like

Why does it not work for me ??
!
IMG_20220427_235649

It does not show me the image it was supposed to display.

You just cant do that.

Why? No way to do that?
And with the expansion here it is possible ?:

1 Like

Hi Xoma!!!
thanks for your answer.
I did it but still doesn’t work but now also when the app is active.


My phone is LG K50S with Android 10.

same problem

1 Like

as you are using MIT App Inventor blocks, you should ask your question in the App Inventor community…

Taifun

Hi, there is a spelling mistake, “Web1.GoText” should be “Web1.GotText”

Can you handle visible components from the background? Nope;

First of all, thank you Kumaraswamy for such nice extension.
I am trying to receive message in background. but no luck. Following are by blocks. Have anyone tried before? - Tester.aia (29.6 KB)

hello, you have to use the “FlagEnd” block in the procedure “doTask” as the last block, and not in Button1

@dennis_littawe1542 , would you like to test my aia once?

Yes , i can

I have attached aia file in my previous post.

Yes, agreed there is a bug in that block, will be fixed in the next update.

Also you are not recommended to use Show Alert block in those procedures, they arent going to work as you expect in all devices.

1 Like

I’ve tried the same example blocks but it didn’t work

image

Using virtual device (Android Studio) and a Xiaomi Note 8 Pro for tests

Check here.

1 Like

anyone can help me?? please