Open Source • Background Tasks: Itoo 🚀

how to change notification every second to every minute? Thanks

1 Like

Hi, please show us what have you tried?

Hi, the background plugin is not working, it plays without adding a tiny db or list event, but it does not work with blocks, where did I make a mistake, please help??

1 Like

i found a new result for the notification only the subtitle entry with the text block is shown in the background other value blocks are not accepted?!?

1 Like

If you want to use Tiny Db, you should use a foreground process

Hello @Kumaraswamy . I have tried the above sample blocks "Notification every second". Upon clicking the button, the notification appeared but the app automatically stops.
Device : LG Q6
Android Version: 8.1

1 Like

Hi, please show me your blocks, sometimes even a small minute difference causes a lot of problems.

1 Like

Here are the blocks @Kumaraswamy ..

1 Like

You must add a parameter "x" to the clock function.

1 Like

Oh, I'm sorry for that. I'll just fix my blocks. Thank you for the response @Kumaraswamy :blush:

1 Like

Hello everbody,
I´m trying to find a solution for the following problem.
I want to check if a value in cloud DB has changed and if so there should be created a push notification. Up to this point no problem, but all this has to happen in the background, when the app is not running (means: when one user changes a value in clouddb, other users should be informed about this by a notification)
I tried a few extensions, but it didn´t really work.
platform: One UI Vers. 5.0 Android 13 (and it should work on little lower platforms)

Maybe anybody can post an example ?

(btw...I´m from Germany and my English is not so good, so sorry for that)

1 Like

You can show us your blocks, what you have tried.

I can, but first let me aks a few questions, please.
I´m not sure, if I really got it, how this exstension works.

Do I need to "register" each event, that should run in the background?
"Create Task" creates an event running in the background? (running when app closed)
"Create process" creates an event only when app is running?
Is it possible to send a notification with another extension triggered from a background task?

1 Like

Create Process refers to the Foreground State, it moves the app to a foreground state.

blocks (5)

This works in that way, that I get a notification also on another device, but only when the app is open :see_no_evil:

1 Like

Where are you creating the foreground or background process?

Also you should use the RegisterEvent block in the procedure itself and not outside.
And the procedure "check_clouddb" is missing two arguments, you need to add a value called "tag" and "value" that should match to the original DataChanged event.

That´s my question...where and how I have to do it.

Ok, I´ll change this

Can you give me an example? I don´t understand what you mean right now :see_no_evil: :woozy_face:

1 Like

You just have to use the "CreateProcess" Block

Just add two more inputs for the procedure.

In the screen initialize block?

What kind of inputs? (I think I have a blackout now :exploding_head: :joy:)

1 Like

Check the "Adding Parameters to Your Procedure" part: