How use 24 hour button

How can I use button which click one time in 24 hours .
Means if some click this button then Working but if it click again than showing please try after 24 hours.
And after 24 hours ago again clickable.
Thanks

This block of code will help

2 Likes

When someone clear the app data than work properly?

I don’t know what do you mean clearing app data, and how will it affect the data in TinyDB, but if the user changes the system time, it won’t correctly.
If that stands as your concern, try using some online time APIs.

2 Likes

1 Like

Sorry, my bad
Use the Get Millis block before the duration to hors blocks

1 Like

7 Likes

Of course this should be:

grafik

Or this (without disabling the button):

You need to do a little more for that.
This video will put you on right track

1 Like