I want to show the users how many days they use my app.
Now I have this code, but this code works based on time that the user press start button.
If user press the button at 15:00 today, the day number counts up at 15:00 tomorrow.
I want to count up the day when day changes 00:00.
I still can’t solve this problem several days.
I suggest another idea. When the user presses the button (on first start), save into tyni db the date and into other tyni db value 1. If the user press the button read the date into tyni db, if is the same do nothing, but if this is higher store tyni db value + 1 and save into tyni db the new date
As i mentioned earlier kodular doesn’t work in background you’ll need to open your app at 00:00 and if you are fine with this then use the clock componet to check current time when screen initializes …if time is 00:00 then start timer