M
M
MDAMDA2020-09-23 13:32:29
Android
MDAMDA, 2020-09-23 13:32:29

How to mark daily entry?

Good afternoon!
Surely everyone knows applications where the user marks his entry daily. If I missed it, then the marks are accumulated again

I rummaged through Google and Yandex and either I don’t know how to formulate queries, or there is no information, but I didn’t find how it is implemented

. If you yourself know how to implement this or there are links to the documentation, then I will very happy with this :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2020-09-23
@Zoominger

What to form? If the user is logged in, make a mark in the database and once every 24 hours (at 00:00:00) check its availability. If not, then reset your points.

A
Alexey Cheremisin, 2020-09-23
@leahch

What about java and android?
And where should the user log in? At the door, on the site, in the application, on the "interactive panel"?

I rummaged through Google and Yandex, and either I don’t know how to formulate queries, or there is no information, but I didn’t find how this is implemented

Yes, I'm the one who doesn't know how to formulate queries ...
By the way, these applications are called - ACS, search for this keyword - https://www.google.com/search?q=%D1%81%D0%BA %D1%83... !

O
Oleg, 2020-09-23
@402d

3 variables
last_login, last_inc, days are
enough and some logic
if the current time is last_login > 24 then reset the chain of days
if today the chain was not counted, then days ++
remembered the new last_login
where you will store these variables at your discretion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question