What error?
That is error with your credential configuration.
I changed the info in the green box in the blocks image I attached, so I got another error:
"CloudDBError: javax.net.ssl.SSLException: Unable to parse TLS packet header"
I don't know how to solve it
another questions please , I still don't understand how this code/blocks, will help me
As I said earlier, your configuration is incorrect.
This should be full Cloud DB url, this is incorrect.
Alright, does it work for you if you use the default credentials?
it worked with no errors while using default credentials.
with respect to my credentials , when I changed the property "Redis Server" to "DEFAULT" I got no error. but I see no change in the Redis Database data.
another questions please , I still don't understand how this code/blocks, will help me ?
I mean , what is the purpose of these blocks , supposing that they worked correctly
Every 5 seconds they store the text
Meow, Kumaraswamy!
in your database
Taifun
but that's not what I need
I need to read values from a database , and to process that data
for example : I read from a database the variable x , if x is true , then show a notification that x is true , and if it's false for example for 10 minutes , a notification is shown about that.
but I need all of this to be done without necessarily that the app is opened.
I hope you got my idea clear. Thank you
Set the values at the very bottom to false if you not use mit server
Well, it is an example how to connect to CloudDB in the background
Of course it is not exactly what you need
Now it is your turn to adjust it to your needs
Taifun
Thank you for your help ,
But still indeed , the blocks not working well , I will try to solve that , if not I will be back here
but what I need is to send notifications in the background. I am really sorry I still didn't find how to relate that
Staet again reading from here
Taifun
This made the code to work , many thanks
thank you Taifun , now the code works properly but still need to modify it to suit my blocks.
notice the blocks now please
This is working , I get a notification every 8 seconds even if the app is not working.
I need now to show this notification under a certain condition , for example if statement.
any ideas please ?
if certain condition
Then Notification.Style1.SimpleNotification
Taifun
Your blocks are improper, I find 3 mistakes.
Here bgCloudDB
is the main background procedure. Not bgNotification
.
Also you are supposed to include argument "x".
You cannot use UI Components in background, you need to save the state of the checkbox (true/false) into Itoo's storage using Store property and call it in background.