In the foreground:
Store the last degree in TinyDB
Then compare the new degree and the stored degree and in case they are different use the Melon Notification extension to send a notification
Taifun
In the foreground:
Store the last degree in TinyDB
Then compare the new degree and the stored degree and in case they are different use the Melon Notification extension to send a notification
Taifun
so i need to get the web data content peridically .. in anither words i need to get the data from web in background how can i do that and also which blocks will i need from all of these?
You have 2 options,
a solution using only the itoo extension, which works, biut drains the battery and requires a persistent notification, but is free, or
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:
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.
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 ![]()
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.
What happens when you click on Button1? Does the app crash?
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...