After logging into the application, if you come back and open the app again, the login page will appear

After logging into the application, if you come back and open the app again, the login page will appear, the home screen page will not appear, please someone solve this problem plz

after successful login store a flag in TinyDB
then while starting the app, reat that flag from TinyDB
as an example see the flag FIRSTRUN from the sqlite project here

for your purposes it would look like this

if ALREADY LOGGED IN
Then open home screen

Taifun

Taifun

1 Like

Sorry,i can’t undertand clearly, can you explain briefly using blocks :roll_eyes: Plz i my app total completed but im facing this bug only​:sneezing_face:

When user successfully logged in use one tinydb to save the status(tag value) as true

During screen initi, call this tinydb tag value (status)…

If this value is true
Open main screen
Else open login screen

1 Like

Im new user of kodular,so i can’t understand,plz share the blocks it can helpful to me :ok_man::pray:

You already received similar example blocks and explanations
Now it is your turn to try something and if you got stuck, post a screenshot of your relevant blocks

Taifun

1 Like

HERE SCREENSHOTS



Here is my login and signup pages blocks, pls can you share the blocks for user getting main screen after loggin succesfully when he open app again

You forgot to try something as it has been suggested earlier
Taifun

make use Tiny DB which will be fast and easy, or
try this block
component_event