I was wondering if there is a quick way to restart the application. For mine once the user has completed, they need to start at the beginning again, and I want all variables reset, etc. Is there an easy way to do this from within the app?
I have nearly 1000 blocks, and I dont want o create a “refresh function” if I dont have to.
I know that process, but as I mentioned I have over 1000 blocks, that is going to take a long time, because there is no way to select all variables, I would have to create an 80 or 100 block procedure. Is there any other way?
I do, but as blocks. They are all grouped together and organised. There are a number of other view’s, visible, colours, and status bars that have to be reset as well.
I wanted to follow up with what I did to address this.
Because variables are not stateful across screens, when you close a screen you lose everything there, (unless you store it in a persistent system like TinyDB etc)
What I needed was a way to restart the process of my app, without all the welcome crap. But I needed it to be a clean start.
Here is what I did:
Screen1
I setup a custom notification process so that if the New User button is clicked, it gets here. I have two things going on here.
First : I have Firebase Stats on the system so I can track the number of times individually and globbaly this process is called.
I set a slight delay to make sure that all the code is loaded for that screen.
I turn the timer off. This is critical, otherwise it will loop for a while trying to figure out what to do.
Now I assess the startValue. If it is 1, then I know where it came from. If not, well for now I close the app.
If it is 1, I can close the screen, and go back to loadup screen 1, and I do so with a new starting value. This allows me to change my startup routine.
I Found A Good Way Actually i Was Searching For This My App
And Seen This But Not Got
But Found my own!
Just Make an empty screen
and in that set when that screen intialize open screen 1
and where you want to restart just set that screen
you are done
How can i open recent Screen @Vaibhav . i dnt want to open specific Sceen like using ScreenName. i just want to open recent ( From where user comes to that screen ). How to do that ?