How to make a 24Hour Button?

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