👁 itoo Push Notification Examples for ALL!

The original apks I created and tested are still working OK on Android 13 Pixel 4a, but if I attempt to create a new apk from the aia file, then this does not work (using either the previous extensions or the most recent), this tested on Android 12, 13 and 14.

I'll be running logcat to see what is occuring.

In the meantime test this aia project (build it first, of course), should just show that itoo and notficationStyle is working.

SimpleItooProject2 (1).aia (117.1 KB)

@husnain

All the other examples appear to work on Android 12 and 14 for me, it is just the one with the Firebase dataChanged event causing an issue. It is being investigated.

Have now figured out the problem.

Set your firebase project rules as follows:

{
  // Allow read/write access to all users under any conditions
  // Warning: **NEVER** use this ruleset in production; it allows
  // anyone to overwrite your entire database.

  "rules": {
    ".read": true,
    ".write": true
  }
}
2 Likes

In the end, it was a simple fix, (and I probably should have done this in the first place!) whilst allowing the itoo node to be read/write true and have other nodes with secure rules.

In the Execution Script, simply add itoo to the end of the firebase url.

Edits have been made to the Example 1 post.

1 Like

In these examples, will the permanent service notification be shown?

Yes, because these use the CreateProcess method

Taifun

Thank you for your work so far.
How can I pass a TimeInterval using a variable and how can I pass a Web.URL using a variable ?

You cannot use variables within the itoo blocks. You would need to setup different processes for different timings or urls.

Use the StoreProperty/FetchProperty methods

Btw in your blocks you are using Post and Get at the same time, which does not make much sense

And: register the Web1.GotText event only once in your bgTimerUpdate procedure

Taifun

Thank you. StoreProperty/FetchProperty methods works.
If I have only POST the request send just once on timeinterval and no repeated.Then is response content equal URL.

Is this a question? Please elaborate, provide an updated screenshot of your relevant blocks and let us know what happens and what you want to happen instead

Taifun

Sorry, the answer was for your previous help.

Btw in your blocks you are using Post and Get at the same time, which does not make much sense

And: register the Web1.GotText event only once in your bgTimerUpdate procedure

Now I found a mistake in my block, sorry. It's already good.

Hello, everything works fine, but when the itoo process launches a notification with Notification Style, it does not call the application when I touch it, could it be something that only happens to me?

@TIMAI2 If I use AI2's default redis server, then what value should I set the address and the password? I'm kind of assuming that the address would be set to DEFAULT.

Yes this is covered in post #5 above

OK thanks.

Hello @TIMAI2 , do all the above examples must have to display a permanent service notification. Or we can also send push notifications like fcm or one signal without display permanent service notification.

Yes, if you use the CreateProcess method, then a permanent notification needs to be displayed

Taifun

Is there a way to bypass this?

A simple way is just to not ask for post notification permission

Taifun