How to make a 24Hour 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

1 Like

You can use clock component to get the millisec of the instant
and a tiny db to store last instant when the button was clicked…

All you have to do is, on button click check if the stored instant value + 86,400,000 is grater then current instant value then perform action else show please try after 24 hours.

3,600,000 = 1hr
86,400,000 mili sec = 24hrs

5 Likes

It’s right but it can be bypass easily by clearing data of app.

To not get bypass use any database to store time.

1 Like

Please share in detail how use database for Time store @killer

1 Like

Yah… you are right, but can use any cloud-database to store and get time to overcome this…

You can use Firebase, Airtable or even TinyWeb-DB

1 Like

1 Like

Or this (without disabling the button):

2 Likes

Check out this I have made one before using Firebase try the apk If you like it I will share the aia

1 Like

You can use my extension.

1 Like