I need help to send notifications using extensions

thanks everyone i have located the problem using adb logcat :relieved_face:..and it was screen1 :sweat_smile:
it says No value for Screen1:

02-11 01:47:42.925 5043 5043 E AndroidRuntime: Caused by: java.lang.RuntimeException: org.json.JSONException: No value for Screen1%0A02-11 01:47:42.925 5043 5043 E AndroidRuntime: at xyz.kumaraswamy.itoo.ItooService.onStartCommand(ItooService.java:115)%0A02-11 01:47:42.925 5043 5043 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3797).

so i had to move relevant blocks to Screen1 and and now it is 1 process and 1 service in the running services, worked fine ..just i couldn’t get the notification because of this :

Screenshot 2026-02-11 3.50.15 AM

it is different in kodular to app inventor, and one more thing:

it looks like something wrong can i hide it somehow and keep it running in the background, not stopping it using button or else it well stop until the app open again.

blocks :

thanks again guys learned something new today adb logcat to locate and find out whats’s going on. :+1:

No
It is a persistent notification
But you can dismiss it on newer Android versions
Btw SavePricessForBoot will nut work anymore for sdk 35…

Taifun

1 Like

got it thanks a lot :blush:

now this is importent:

It looks correct, make sure there are no extra spaces where they shouldn’t be.
immagine
(I’m not really sure whether it’s there or not)

there are no extra spaces, when you zoom in blocks it appears like in the picture, i have tried the first method too, EXAMPLE 7 using the the script again and still didn’t received notifications even that process is running,

i well stop here for now until i find a way through this, should i mark a Solution :thinking:

thank you guys for your time :blush:

Anything useful in logcat?
How do you trigger the DataChanged event?
You only can get a notification if there is a change

Taifun

i don’t know how do logcat can help here, but i well give a try..

i changed it many times manually and even from my app by spinner selection, but i don’t receive it :sweat_smile:
i followed every step as in the video i saw and it worked in the video but not with me, but in the video and the examples blocks they are using app inventor not kodular, is there a different between them? like Firebase_Database1.Data Changed: kodular block event and FirebaseDB1.DataChanged: app inventor block event :thinking:

1 Like

Try a test project in App Inventor then to find out if there is a difference
Can you post a link to that video?
Taifun

i well

Background Tasks in mit app inventor ,kodular (Part 2) - Firebase Notifications.

Ask the author @_ahmed aka Mr. Koder for help

Taifun

1 Like

using app inventor,i get a runtime error, because FirebaseDB is experimental component :

some people reported that error in MIT APP Inventor community,

Runtime Error Error from Companion, FirebaseBD

even worse :anguished_face:

You do not actually need to load the firebase component to use itoo in the background with firebase.

In the example instructions, it is only used to allow message value changes for testing purposes (this could also be done using a web component)

If nothing else works, you may wish to consider using the timer approach instead of the dataChanged approach. (Or drop firebase altogether and use another online data storage offering)

2 Likes

Which runtime wrror do you get?
You can ignore the warning

Taifun

thanks, i well consider it :+1:

Screenshot 2026-02-16 1.37.20 AM

when i ignore the warning and builds the app after installing,when it opens,i get a blank freezed screen nothing on it even the itoo process not running

as you are now using App Inventor for the test project, ask in the App Inventor community in the corresponding thread
protip: follow the tutorial carefully to avoid errors

Taifun

1 Like