Open Source β€’ Background Tasks: Itoo πŸš€

If you want to get periodic event, don't forget to call Clock component in this way (evaluate but ignore result):

I would like to use Itoo to ping an API and, depending on the result, send a notification about it. These blocks are not working:


Can I not use the Web1.GotText handler with Itoo?

No, you can't do this directly
Read the complete Itoo thread to find several examples how to do it

Taifun

2 Likes

You have to registeer the Web1.GotText event with necessary arguments included in the procedure from where you will handle the response.

Ohh, so I need to use two Itoo1.RegisterEvent blocks, one for the timer and one for the web component? Or do I need to do something else with the register block?

1 Like

That should work fine.

Okay! I'll try it and see.

1 Like

What was the result, so far?

What do I put for procedure?
Web1.GotText did not work and I think leaving it empty would cause a runtime error.

Here is one of several examples of a got_text procedure which can be found in this thread

Taifun

1 Like

You have to put there a procedure name that will be called, it will have the same values as the Web1.GotText event:

1 Like

Still not receiving any notifications from the NotificationStyle extension :thinking:.

It does not make sense to set the responseContent parameter like this...

First get something simple running, for example periodically send a notification. After you got that running successfully then try again a more complex example

Taifun

3 Likes

You should be using the new modified notification style extension, which one are you using?

Version 1
image

However I have Android 10, so this version should work. I'll update anyway, and try some other things for now.

1 Like

Doesn't work like that. AppInventor version causes that error, not Android version.

1 Like

I updated the extension, and these blocks do work:

However Button2 did not stop the notifications. Do I need to also use Clock1.TimerEnabled to False to stop it?

2 Likes

Nice, use StopTask block when you want to stop a service outside of it.

1 Like

Oh, okay. Thank you!

1 Like

I want to create a reminder app that can send notifications even when the app is in background for different date and time inputted by user which are saved in tiny DB and want to know what I am doing wrong here please help.

I have been able to create the difference between the required date and time and current system time in milliseconds to put it in latency in create tasks it would be a great help if you could take a look @Kumaraswamy