I am Working on App need to count Days To Manage Salary time, But I couldn’t make it count or know how many days left in real life.
I Need Help
Hi and welcome to Thunkable! Can you provide more details and a specific example?
What do you mean by “how many days left in real life”? Only the grim reaper knows that!
I mean how can I make the app know the actual time and calculate how many days have passed after using the app even if it is closed, is that possible?
So you want to know the uptime of the app after it’s been downloaded, is that correct?
If so yu can use stored variables to store the seconds from opening and then just increase that variable every second using the timer component.
Wich you can then displays as seconds or turn into minutes, hours, seconds etc using certain math formulas.
Yes That is What I mean. Thanks!
But I don’t know how to use Stored Variable or Test it, Can You Give me Link of Stored Variables ?
Sadly there are no docs on stored variables, or atleast i couldnt find any official docs on how they work.
But it comes down to a simple principle:
Stored variables are stored on the device this means that when the user closes the app, the value of the variable will still be available when the user opens the app again and stored variables only lose their value when the user clear storage & cache.
Here is a video on variables in general: https://www.youtube.com/watch?v=3M9F3X1bCnA