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

Show your firebase url in your app (in full - you can hide the projectname)
Show your firebase rules
Show your firebase console structure

https://</pname/>-default-rtdb.firebaseio.com/

{
"rules": {
".read": "now < 1763740800000", // 2025-11-22
".write": "now < 1763740800000", // 2025-11-22
}
}

wdym by firebase console structure?

image

image

Where is the shortened email address with an Appointment Update value ?

It won't work if you don't have a match...

i removed it because i tried testing it using messages tag, but i get the same issue

is this an issue on my phone or a bug? becuase i already did disable battery optimization

Could be your device, just been testing and all is working OK when app is closed, still receives notifications.

Hmm, I think I found the issue, what could be causing this


When I press notifications it says that the app doesn't exist

image

I'm just trying to make "createTask" show a notification within 15 seconds. However, even capturing the notification element, it doesn't work.

You could just use a clock timer ?

image

It's not for me, friend. Because the app will be closed. I want it to send the notification, even with the app closed.

Try itoo method CreateProcess and use a clock component to send the notification after 15 seconds in the timer event handler

Taifun

I understand, friend. But I really need something using createTask. It really doesn't work? Why would someone create a function that doesn't work lol

Why? To avoid the persistent notification for the foreground service?
The 15 seconds are only to test and later you plan to use another value more in the future? In this case this would be a job for an alarmmanager
There is a basic free solution available (search the community) as well as a paid advanced alarmmanager App Inventor Extensions: Alarm Manager | Pura Vida Apps

Taifun

I just wish someone would teach me how to "CreateTask". I get angry when I can't use something, and it's been keeping me up at night lol. Could you please create a screenshot of how the "CreateTask" function could be used PLEASE.

CreateTask uses the JobScheduler API of Android, which has a maximum life span of ~15 minutes. This is used for non-critical tasks such as uploading logs or debug information to a server.

For a user-visible task, use CreateProcess, and there won't be a permanent notification on Android 15+ devices.

Then, in the procedure, use a clock component, set its interval, listen to the Clock's Timer event, and create and post a notification there.


Refer to the "Doing a GET request every 5 seconds" in the topic's guide:

In the bgTimer, replace the Web blocks with your Melon Notification blocks.

I have tried simpleItooProject.aia on Motorola Android15 phone. The service runs even if app is not active but only for 3 to 4 hours and after that it stops working. To make it work again it requires re installation or storage needs to be clear. Please guide. Thanks

Concerning Motorola read this Motorola | Don’t kill my app!

Also you can try

EDIT: also what version of itoo uses that example project? Upgrade to the latest version

Taifun

I am using the latest version of itoo. I tried the batopt.aia, which is working fine, but again it worked for around 4 hours then stopped. Only difference is that it no longer required to reinstall or clear the storage to get the push notifications again.