How do you create a screen that appears only once?

I want to make a registration screen that will appear only once while using the app. How can I make that?

Use a tinydb to store a "firstRun" variable and test for this on Screen1.initialise. On firstrun variable = true, so the registration screen can be shown, then set the variable to false. On the next run of the app variable = false so the screen should not be shown.

Is the registration screen a real screen or virtual screen?

1 Like

like that?

When Screen.initialize
if (tinydb.getvalue(tag:firstrun,if not found: true)
then {

do something when first run
tinydb.saveValue(tag:firstrun, value: false)
}else {
do something when not first run

1 Like