Hello , thanks for your reply
I am using these blocks , for test purposes only
what's happening here is just getting 2 notifications , one is "How are you" which is I don't need - it happens once only
and I got a notification every second "Important Note" - knowing that I have a timer of six seconds interval , also I am using it just for test purposes
I want this notification to happen under if condition.
notice that I am using ltoo1 and NotificationStyle1 extensions
this is the permanent notification which is required for forground tasks
the 1 second is the default timer interval of the clock
you forgot to set the timer interval in your clocks procedure to 6000
what kind of if condition?
add your logic into the timer procedure
Taifun
I want for example , a checkbox , when checked to get a notification , even if the application is not opened - I want it to work in the background
I hope you get my idea
I really appreciate your help , many thanks
use the StoreProperty method to store the checkbox.checked state
and in your timer procedure add an if statement to check the checkbox.checked state using the FetchProperty method of itoo
Taifun
I did this , kindly checkout the blocks
I am getting the notification after 6 seconds correctly , It worked
but , I still need the application to work in the background , even if the user killed all application.
is that applicable ?
the Clock1.Timer event will not work in the background, you have use your background event handler which looks like a procedure, you correctly registered your timer procedure for this, see also my example for Jeff here Maintain the activity of an application in the background - #25 by Taifun
and just follow my suggestion
Taifun
I am sorry for too much questions , but I still couldn't find a solution
here is my main project block , notice the notifier show alert , I just want my app to work in background , and send a notification like whatsapp notifications , in the place where the notifier shows alert.
It helps to be clear about your requirements... you now showed us a screenshot using CloudDB...
Unfortunately itoo is currently not compatible with CloudDB... see also here
Taifun
so as I understand , an application that uses clouddb , can't work in the background ?
kindly check this extension
https://ullisroboterseite.de/android-AI2-KeepAlive-en.html
do you think this extension can achieve what I need in my application ?
I do not know, I'm not familiar with that extension... itoo is the most powerful extension concerning background functionality...
just experiment yourself and let us know what you find out...
See also @SteveJG 's comment and example here
Taifun
The new update now adds compatibility with CloudDB.
kindly would you help me please here , I want my application to send notifications even if it's killed not working , like whatsapp for example , it sends notification even if the app is closed
SimpleItooCloudDB.aia (82.2 KB)
I cannot help you with everything totally making the app. But here's what that might help you start.
thank you,sure I dont want everything, my code is ready , I just need the notification issues.
why do I need the clouddb here ? I dont understand what is its use here
I think , you miss understand the purpose of my application.
I have a sensor on arduino that senses the absence of electric power , so it sends me the data to a redis data base
on MIT app side , I read those values from the database , and sends a notification displaying those data according to a certain criteria.
everything is ready , but what i need now is to make this app sends notification even if the app is not working , even if the app is closed - I want to it to work in background even if it's killed by the user , so that it still sends notification all time
the latest screenshot you showed us was about CloudDB
so this is a CloudDB, isn't it?
your logic in the background is more or less "if CloudDB.DataChanged then send notification"... isn't it?
Taifun
I guess that is the purpose here? We can use CloudDB to listen to data changes and send a notification accordingly, what else do you want?
There was some miscommunication, we believed you would want to achieve "sending notification when the app is closed through CloudDB".
Okay so, let me try to help you, how would you know when to send a notification to the user?
I need , the app to send notifications even if the app is not working - like telegram for example it still sends us notifications even if its not working or even its not opened by the user.