I am trying to make an app similar to the forest app where you have a specific time to do your tasks. Basically there is a timer and a task you will have to do within that timer. However, I have multiple screens and is not sure how to keep the timer going on each screen. I’ve made it so that it saves the time on the main screen to ‘local storage’, and when it goes to the next screen, it displays the number/time left, however, it doesn’t count down and stays the same number. Another problem is that when I return to the main screen, it resets and I have no idea how to continue the timer. Here is what I have so far using ‘local storage’:
Hi I’ve done some research about app variables but still don’t really understand how to use them. If you could explain or send me a link It’ll be very much appreciated. Thank you.