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
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
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
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
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.
I will make it more clear with an example :
i have data about electricity failure, true : means the electric power is available
false: means the electric power is not available.
I read those values from an online Redis Database
my app , reads those data , if the data is false for 10 minutes , using a timer , it must send a notification for the user " Electric Power is not available since 10 minutes"
then , if it stills not available more , it sends notification every 5 minutes
I can send the blocks if you want me to
Your help is really appreciated thank you
Well, you are using CloudDB to check when there's a power outage?
Then why not check the earlier example posted that demonstrates how to use Cloud DB in background, from where you can check the database on a regular interval?