Background notificaton

You have 2 options,

  1. a solution using only the itoo extension, which works, biut drains the battery and requires a persistent notification, but is free, or

  2. the professional solution, which uses the advanced alarmmanager extension without persistent notification, which is able to execute some logic in rhe background periodically as you need it, but is paid and is available for only 15 USD

Taifun

with solution 1 how can i made that fetch data from web in background and if data changed send notification ???? (and i read the docs there are block that shows process is running all the time how can hide that ??? ) ( and is this block in your solution 2 ?? ) can you help me wz blocks in solution 1 plz ???in every change in web data send notification

and what is the difference between solutions you said and melon notification?

i dont have afirebase and i dont want that .. all i want is from my web1 when its gots text it runs in background and notification sent to the app if there are any changes in data of web1 which is in my example in label 1 as shown in my blocks

Yes, here is a roadmap for you:

  1. First, get the functionality working normally, without background
  2. Second, read the entire Open Source • Background Tasks: Itoo 🚀 post and go through the examples
  3. Try something with Itoo
  4. Ask for help here if you get stuck

We cant help you if you are unwilling to try.

theere is ablock called create process how can i hide that or how can i instread of that calling web data every hour and shoow create process every hour ???can that happened

Should be something like this, using iToo and MelonNotification

(you may need to adjust "clean message" or possibly not need it at all, depending on what is cominig back from your API)

Remember this will only work with a compiled app.


my blocks is same to you i think right ??

it doesnt work for me :(c --- it first when opening app shows my app keeps stopping app info or close app and when click in info and make notifications on it doesn`t show again ,,, but no notification sent :frowning:

No, you have to set the Web1.Url property in blocks in the Notification procedure...

i am already put in url property in the design url for web1 component ,, must i put it again in notification procedure ? and is this the only error ?

Yes, you must put it again in the notification procedure and it seems to be the only error.

okay i put it but same error at first my app keeps stopping app info or close app and when click in info and make notifications on it doesn`t show again ,,, and also no notification sent

I'm not sure what the error is... Show us your new blocks and perhaps post your .aia file here.


i put the value from web in label and store as you see --- all i want is to send notification when the value changed -- also the web must work in background

What happens when you click on Button1? Does the app crash?

yes ,shows me a


message ( app keeps stopping --- app info or close app)

Do you test it in the companion? The companion doesn't work. If not, you can privately send me your .aia file so that I can look into it...

i build it and download in my phone many times ,, and i need only to send notification if the value from web changed ,, is my blocks made that ??

What is your Android version? Create a new project with the same Itoo and MelonNotification blocks and post the .aia file here.