πŸ‘ itoo Push Notification Examples for ALL!

You would need to ask Firebase as to how connections work. From what I remember, several connections are made whenever AI2 makes requests from the Firebase RealtimeDatabase. In this scenario (Example 1 or 2) connections will only be momentary, which should mean that 1000's of devices could be connected without hitting the 100 concurrent limit.

now I'm testing the Google Sheets setup that checks for updates and sends a notification every 15 seconds. However, the notification text is not displaying the expected message. Instead, it shows something like this:

<!DOCTYPE html><style nonce="...">

I also noticed that the nonce value seems to change every 15 seconds.

What could be causing this?
Is it possible that the script is returning an HTML response instead of plain text? How can I ensure the notification displays only the intended message or data?

Any insights would be appreciated!

You have something wrong somewhere, which means that google is returning an html error page, instead of the "message". Check you work.

To begin with you need to set your google sheet access as "Anyone with the Link". The app cannot access the data therein otherwise.

Ah, I just realized the issue was due to the sharing settings β€” I had forgotten to set the Google Sheet access to β€œAnyone with the link”. That explains why the Web component wasn't able to fetch the data correctly. Thank you for pointing that out! its working now. :smiling_face_with_three_hearts:

2 Likes

A post was merged into an existing topic: Open Source β€’ Background Tasks: Itoo :rocket:

A post was merged into an existing topic: Open Source β€’ Background Tasks: Itoo :rocket:

@Taifun How can i make the notifications for specific users?
i tried that but didnt work


and that didnt work too!
image

An example in post # 175 above

Read down from there, there may be other methods ?

First of all, use only one itoo instance
Second: why so complicated? Use a simple if statement (pseudo code)

If driver
Then CreateProcess

Taifun

you are right, but i tried it too but didn't work
image

any other solutions please?

Why do you think, it does not work?
Debug your project
Use logcat

Taifun

Never use 2 different itoo instances!
Use only itoo1 and NOT itoo2

Taifun

its already one itoo,
am just using two screens, one is general screen and one is private screen for drivers only, the general screen notification is working normally but the private screen notifications isn't working

@Taifun here are my trying and none worked
image

image

image

It might be just because of that
Try to put all event handlers into Screen1

How does the event handler bgTimer look like?

@Kumaraswamy how does itoo know where (on which screen) to find the event handler for background processing? In the itooX framework there is the property ReferenceScreen, but that property does not exist in itoo itself?

@mustafaalbasel What did you find out after debugging your project as mentioned earlier?
Add debug statements... use Notifier.LogInfo to log something and use logcat to check

Taifun

Can you show me an example how debugging my project please?
as i didn't get it, for trying the notifications am downloading the apk file each time changes to try

the issue for me by trying isn't in two screens as i discounted the general screen and trying the private screen only to make the notifications working for drivers only and not working for users but didn't work!

As previously provided for you:

Hi, the reference screen is the screen in which the CreateProcess has been called.

1 Like